Interface: PropertyValidationSchema
Rules to validate any property. Some properties have specific rules additionally to these.
Extended by​
NumberPropertyValidationSchema
StringPropertyValidationSchema
DatePropertyValidationSchema
ArrayPropertyValidationSchema
Properties​
required?​
optional
required:boolean
Is this field 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
Defined in​
packages/firecms_core/src/types/properties.ts:639
unique?​
optional
unique:boolean
If the unique flag is set to true
, you can only have one entity in the
collection with this value.
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