StringPropertyValidationSchema
@firecms/core / StringPropertyValidationSchema
Interface: StringPropertyValidationSchema
Section titled “Interface: StringPropertyValidationSchema”Defined in: types/properties.ts:729
Validation rules for strings
Extends
Section titled “Extends”Properties
Section titled “Properties”length?
Section titled “length?”
optionallength:number
Defined in: types/properties.ts:730
lowercase?
Section titled “lowercase?”
optionallowercase:boolean
Defined in: types/properties.ts:739
matches?
Section titled “matches?”
optionalmatches:string|RegExp
Defined in: types/properties.ts:733
matchesMessage?
Section titled “matchesMessage?”
optionalmatchesMessage:string
Defined in: types/properties.ts:737
Message displayed when the input does not satisfy the regex in matches
optionalmax:number
Defined in: types/properties.ts:732
optionalmin:number
Defined in: types/properties.ts:731
required?
Section titled “required?”
optionalrequired:boolean
Defined in: types/properties.ts:689
Is this field required
Inherited from
Section titled “Inherited from”PropertyValidationSchema.required
requiredMessage?
Section titled “requiredMessage?”
optionalrequiredMessage:string
Defined in: types/properties.ts:694
Customize the required message when the property is not set
Inherited from
Section titled “Inherited from”PropertyValidationSchema.requiredMessage
optionaltrim:boolean
Defined in: types/properties.ts:738
unique?
Section titled “unique?”
optionalunique:boolean
Defined in: types/properties.ts:700
If the unique flag is set to true, you can only have one entity in the
collection with this value.
Inherited from
Section titled “Inherited from”PropertyValidationSchema.unique
uniqueInArray?
Section titled “uniqueInArray?”
optionaluniqueInArray:boolean
Defined in: types/properties.ts:708
If the uniqueInArray flag is set to true, you can only have this value
once per entry in the parent ArrayProperty. It has no effect if this
property is not a child of an ArrayProperty. It works on direct
children of an ArrayProperty or first level children of MapProperty
Inherited from
Section titled “Inherited from”PropertyValidationSchema.uniqueInArray
uppercase?
Section titled “uppercase?”
optionaluppercase:boolean
Defined in: types/properties.ts:740