Skip to content

PersistentAI API Documentation / @persistentai/fireflow-types / ObjectSchema

Function: ObjectSchema()

ObjectSchema(options, nodeRegistry?): ClassDecorator

Defined in: packages/fireflow-types/src/decorator/object-schema.decorator.ts:52

The

Parameters

options

Partial<IObjectSchema<Record<string, IPortConfig>>> & object

Optional additional settings for the object schema.

nodeRegistry?

NodeRegistry = ...

Returns

ClassDecorator

Object Schema Decorator

decorator collects all properties decorated with

Port

(via its metadata) and builds an explicit object schema. It then normalizes the schema recursively.

Licensed under BUSL-1.1