mirror of
https://github.com/zhigang1992/firecms.git
synced 2026-06-19 07:00:29 +08:00
1.8 KiB
1.8 KiB
id, title, sidebar_label, sidebar_position, custom_edit_url
| id | title | sidebar_label | sidebar_position | custom_edit_url |
|---|---|---|---|---|
| propertyvalidationschema | Interface: PropertyValidationSchema | PropertyValidationSchema | 0 | null |
Rules to validate any property. Some properties have specific rules on top of these.
Hierarchy
-
PropertyValidationSchema
↳ NumberPropertyValidationSchema
↳ StringPropertyValidationSchema
Properties
required
• Optional required: boolean
Is this field required
Defined in
requiredMessage
• Optional requiredMessage: string
Customize the required message when the property is not set
Defined in
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
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