StringConstraints
Defined in: core/field/types/String.ts:36
String-specific constraints
Extends
Section titled “Extends”BaseConstraints
Properties
Section titled “Properties”
optionalenum:string[]
Defined in: core/field/types/String.ts:55
Restrict values to a specified set of strings
maxLength?
Section titled “maxLength?”
optionalmaxLength:number
Defined in: core/field/types/String.ts:45
Maximum string length
minLength?
Section titled “minLength?”
optionalminLength:number
Defined in: core/field/types/String.ts:40
Minimum string length
pattern?
Section titled “pattern?”
optionalpattern:string
Defined in: core/field/types/String.ts:50
Regular expression pattern to match
required?
Section titled “required?”
optionalrequired:boolean
Defined in: core/field/types/Base.ts:57
Indicates if field is allowed to be null/empty
Inherited from
Section titled “Inherited from”BaseConstraints.required
unique?
Section titled “unique?”
optionalunique:boolean
Defined in: core/field/types/Base.ts:62
Indicates if values must be unique within the column
Inherited from
Section titled “Inherited from”BaseConstraints.unique