Skip to main content
Version: 2.0.0

Interface: PropertyValidationSchema

Rules to validate any property. Some properties have specific rules additionally to these.

Hierarchy

Properties

required

Optional required: boolean

Is this field required

Defined in

lib/src/types/properties.ts:620


requiredMessage

Optional requiredMessage: string

Customize the required message when the property is not set

Defined in

lib/src/types/properties.ts:625


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

lib/src/types/properties.ts:631


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

Defined in

lib/src/types/properties.ts:639

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!