Skip to content

NumberPropertyValidationSchema

@firecms/core


@firecms/core / NumberPropertyValidationSchema

Defined in: types/properties.ts:715

Validation rules for numbers

optional integer: boolean

Defined in: types/properties.ts:722


optional lessThan: number

Defined in: types/properties.ts:718


optional max: number

Defined in: types/properties.ts:717


optional min: number

Defined in: types/properties.ts:716


optional moreThan: number

Defined in: types/properties.ts:719


optional negative: boolean

Defined in: types/properties.ts:721


optional positive: boolean

Defined in: types/properties.ts:720


optional required: boolean

Defined in: types/properties.ts:689

Is this field required

PropertyValidationSchema.required


optional requiredMessage: string

Defined in: types/properties.ts:694

Customize the required message when the property is not set

PropertyValidationSchema.requiredMessage


optional unique: boolean

Defined in: types/properties.ts:700

If the unique flag is set to true, you can only have one entity in the collection with this value.

PropertyValidationSchema.unique


optional uniqueInArray: boolean

Defined in: types/properties.ts:708

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

PropertyValidationSchema.uniqueInArray