Skip to content

ObjectConstraints

Defined in: core/build/field/types/Object.d.ts:14

Object-specific constraints

  • BaseConstraints

optional enum: string[] | Record<string, any>[]

Defined in: core/build/field/types/Object.d.ts:31

Restrict values to a specified set of objects Serialized as JSON strings or object literals


optional jsonSchema: Record<string, any>

Defined in: core/build/field/types/Object.d.ts:26

JSON Schema object for validating the object structure and properties


optional maxLength: number

Defined in: core/build/field/types/Object.d.ts:22

Maximum number of properties


optional minLength: number

Defined in: core/build/field/types/Object.d.ts:18

Minimum number of properties


optional required: boolean

Defined in: core/build/field/types/Base.d.ts:51

Indicates if field is allowed to be null/empty

BaseConstraints.required


optional unique: boolean

Defined in: core/build/field/types/Base.d.ts:55

Indicates if values must be unique within the column

BaseConstraints.unique