Skip to main content
Version: 2.0.0-alpha

Interface: ArrayPropertyValidationSchema

Validation rules for arrays

Hierarchy

Properties

max

Optional max: number

Defined in

lib/src/types/properties.ts:679


min

Optional min: number

Defined in

lib/src/types/properties.ts:678


required

Optional required: boolean

Is this field required

Inherited from

PropertyValidationSchema.required

Defined in

lib/src/types/properties.ts:610


requiredMessage

Optional requiredMessage: string

Customize the required message when the property is not set

Inherited from

PropertyValidationSchema.requiredMessage

Defined in

lib/src/types/properties.ts:615


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

lib/src/types/properties.ts:621


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

lib/src/types/properties.ts:629

Need a hand?

We are happy to offer consulting services to help you get the most out of FireCMS.
Get in touch