Skip to main content

Interface: FieldNode

Defined in: packages/core/src/field.types.ts:23

One addressable field of a schema, in the dotted form a hint key uses.

Properties​

kind​

kind: FieldKind

Defined in: packages/core/src/field.types.ts:27

What the field is, and so what an inspector renders for it.


maxItems?​

optional maxItems?: number

Defined in: packages/core/src/field.types.ts:37

The schema's own upper bound on an array field's row count, when it declares one.


maxLength?​

optional maxLength?: number

Defined in: packages/core/src/field.types.ts:33

The schema's own upper bound on a string field's length, when it declares one.


members?​

optional members?: readonly string[]

Defined in: packages/core/src/field.types.ts:31

Present only for enum.


minItems?​

optional minItems?: number

Defined in: packages/core/src/field.types.ts:35

The schema's own lower bound on an array field's row count, when it declares one.


optional​

optional: boolean

Defined in: packages/core/src/field.types.ts:29

true when the schema does not require the field. An array's row shape is never optional.


path​

path: string

Defined in: packages/core/src/field.types.ts:25

Dotted path from the schema root, with [] for array members: cta.label, items[].title.