StringConstraints
Defined in: core/field/types/String.ts:37
String-specific constraints
Extends
Section titled “Extends”BaseConstraints
Properties
Section titled “Properties”
optional
enum:string
[]
Defined in: core/field/types/String.ts:56
Restrict values to a specified set of strings
maxLength?
Section titled “maxLength?”
optional
maxLength:number
Defined in: core/field/types/String.ts:46
Maximum string length
minLength?
Section titled “minLength?”
optional
minLength:number
Defined in: core/field/types/String.ts:41
Minimum string length
pattern?
Section titled “pattern?”
optional
pattern:string
Defined in: core/field/types/String.ts:51
Regular expression pattern to match
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