Skip to main content
Version: 2.0.0

Interface: StringPropertyValidationSchema

Validation rules for strings

Hierarchy

Properties

length

Optional length: number

Defined in

packages/firecms/src/types/properties.ts:658


lowercase

Optional lowercase: boolean

Defined in

packages/firecms/src/types/properties.ts:667


matches

Optional matches: string | RegExp

Defined in

packages/firecms/src/types/properties.ts:661


matchesMessage

Optional matchesMessage: string

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

Defined in

packages/firecms/src/types/properties.ts:665


max

Optional max: number

Defined in

packages/firecms/src/types/properties.ts:660


min

Optional min: number

Defined in

packages/firecms/src/types/properties.ts:659


required

Optional required: boolean

Is this field required

Inherited from

PropertyValidationSchema.required

Defined in

packages/firecms/src/types/properties.ts:617


requiredMessage

Optional requiredMessage: string

Customize the required message when the property is not set

Inherited from

PropertyValidationSchema.requiredMessage

Defined in

packages/firecms/src/types/properties.ts:622


trim

Optional trim: boolean

Defined in

packages/firecms/src/types/properties.ts:666


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/src/types/properties.ts:628


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/src/types/properties.ts:636


uppercase

Optional uppercase: boolean

Defined in

packages/firecms/src/types/properties.ts:668

Enterprise or start-up?

Learn how to get the most out of your project with the help of our consulting team.
Learn more
Sign up to our newsletter to get the latest news and updates. No spam!