ArrayConstraints
Defined in: core/field/types/Array.ts:16
Array-specific constraints
Extends
Section titled “Extends”BaseConstraints
Properties
Section titled “Properties”
optional
enum:string
[] |any
[][]
Defined in: core/field/types/Array.ts:36
Restrict values to a specified set of arrays Serialized as JSON strings or parsed array objects
jsonSchema?
Section titled “jsonSchema?”
optional
jsonSchema:Record
<string
,any
>
Defined in: core/field/types/Array.ts:30
JSON Schema object for validating array items
maxLength?
Section titled “maxLength?”
optional
maxLength:number
Defined in: core/field/types/Array.ts:25
Maximum array length
minLength?
Section titled “minLength?”
optional
minLength:number
Defined in: core/field/types/Array.ts:20
Minimum array length
required?
Section titled “required?”
optional
required:boolean
Defined in: core/field/types/Base.ts:52
Indicates if field is allowed to be null/empty
Inherited from
Section titled “Inherited from”BaseConstraints.required
unique?
Section titled “unique?”
optional
unique:boolean
Defined in: core/field/types/Base.ts:57
Indicates if values must be unique within the column
Inherited from
Section titled “Inherited from”BaseConstraints.unique