Skip to main content

Interface: StringPropertyValidationSchema

Validation rules for strings

Hierarchy

Properties

email

โ€ข Optional email: boolean

Defined in

models/properties.ts:490


length

โ€ข Optional length: number

Defined in

models/properties.ts:482


lowercase

โ€ข Optional lowercase: boolean

Defined in

models/properties.ts:493


matches

โ€ข Optional matches: RegExp

Defined in

models/properties.ts:485


matchesMessage

โ€ข Optional matchesMessage: string

Message displayed when the input does not satisfy the regex in matches

Defined in

models/properties.ts:489


max

โ€ข Optional max: number

Defined in

models/properties.ts:484


min

โ€ข Optional min: number

Defined in

models/properties.ts:483


required

โ€ข Optional required: boolean

Is this field required

Inherited from

PropertyValidationSchema.required

Defined in

models/properties.ts:441


requiredMessage

โ€ข Optional requiredMessage: string

Customize the required message when the property is not set

Inherited from

PropertyValidationSchema.requiredMessage

Defined in

models/properties.ts:446


trim

โ€ข Optional trim: boolean

Defined in

models/properties.ts:492


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

models/properties.ts:452


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

models/properties.ts:460


uppercase

โ€ข Optional uppercase: boolean

Defined in

models/properties.ts:494


url

โ€ข Optional url: boolean

Defined in

models/properties.ts:491