PersistentAI API Documentation / @persistentai/fireflow-types / resolveObjectSchema
Function: resolveObjectSchema()
resolveObjectSchema(
schemaOrConstructor):IObjectSchema
Defined in: packages/fireflow-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
The resolved and normalized object schema.