Skip to content

ChainGraph API Documentation / @badaitech/chaingraph-types / resolveObjectSchema

Function: resolveObjectSchema()

resolveObjectSchema(schemaOrConstructor): IObjectSchema

Defined in: packages/chaingraph-types/src/decorator/object-schema.decorator.ts:30

Updated resolveObjectSchema: If the argument is a constructor (function), then retrieves its stored schema metadata. If it's already a plain object, then recursively normalizes it.

Parameters

schemaOrConstructor

An object schema or a constructor decorated with @ObjectSchema.

Function | IObjectSchema<Record<string, IPortConfig>>

Returns

IObjectSchema

The resolved and normalized object schema.

Licensed under BUSL-1.1