Skip to main content

Interface: StringPropertyValidationSchema

Validation rules for strings

Hierarchy

Properties

email

Optional email: boolean

Defined in

models/properties.ts:493


length

Optional length: number

Defined in

models/properties.ts:485


lowercase

Optional lowercase: boolean

Defined in

models/properties.ts:496


matches

Optional matches: RegExp

Defined in

models/properties.ts:488


matchesMessage

Optional matchesMessage: string

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

Defined in

models/properties.ts:492


max

Optional max: number

Defined in

models/properties.ts:487


min

Optional min: number

Defined in

models/properties.ts:486


required

Optional required: boolean

Is this field required

Inherited from

PropertyValidationSchema.required

Defined in

models/properties.ts:444


requiredMessage

Optional requiredMessage: string

Customize the required message when the property is not set

Inherited from

PropertyValidationSchema.requiredMessage

Defined in

models/properties.ts:449


trim

Optional trim: boolean

Defined in

models/properties.ts:495


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:455


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:463


uppercase

Optional uppercase: boolean

Defined in

models/properties.ts:497


url

Optional url: boolean

Defined in

models/properties.ts:494