Skip to main content
Version: 3.0.0-beta

Interface: StringPropertyValidationSchema

Validation rules for strings

Extends​

Properties​

length?​

optional length: number

Defined in​

packages/firecms_core/src/types/properties.ts:675


lowercase?​

optional lowercase: boolean

Defined in​

packages/firecms_core/src/types/properties.ts:684


matches?​

optional matches: string | RegExp

Defined in​

packages/firecms_core/src/types/properties.ts:678


matchesMessage?​

optional matchesMessage: string

Message displayed when the input does not satisfy the regex in matches

Defined in​

packages/firecms_core/src/types/properties.ts:682


max?​

optional max: number

Defined in​

packages/firecms_core/src/types/properties.ts:677


min?​

optional min: number

Defined in​

packages/firecms_core/src/types/properties.ts:676


required?​

optional required: boolean

Is this field required

Inherited from​

PropertyValidationSchema.required

Defined in​

packages/firecms_core/src/types/properties.ts:634


requiredMessage?​

optional requiredMessage: string

Customize the required message when the property is not set

Inherited from​

PropertyValidationSchema.requiredMessage

Defined in​

packages/firecms_core/src/types/properties.ts:639


trim?​

optional trim: boolean

Defined in​

packages/firecms_core/src/types/properties.ts:683


unique?​

optional unique: boolean

If the unique flag is set to true, you can only have one entity in the collection with this value.

Inherited from​

PropertyValidationSchema.unique

Defined in​

packages/firecms_core/src/types/properties.ts:645


uniqueInArray?​

optional uniqueInArray: boolean

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​

PropertyValidationSchema.uniqueInArray

Defined in​

packages/firecms_core/src/types/properties.ts:653


uppercase?​

optional uppercase: boolean

Defined in​

packages/firecms_core/src/types/properties.ts:685

Sign up to our newsletter to get the latest news and updates. No spam!