Skip to content

StringConstraints

Defined in: core/build/field/types/String.d.ts:34

String-specific constraints

  • BaseConstraints

optional enum: string[]

Defined in: core/build/field/types/String.d.ts:50

Restrict values to a specified set of strings


optional maxLength: number

Defined in: core/build/field/types/String.d.ts:42

Maximum string length


optional minLength: number

Defined in: core/build/field/types/String.d.ts:38

Minimum string length


optional pattern: string

Defined in: core/build/field/types/String.d.ts:46

Regular expression pattern to match


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