Files
firecms/website/docs/api/interfaces/stringpropertyvalidationschema.md
2021-06-06 13:36:47 +02:00

3.5 KiB

id, title, sidebar_label, sidebar_position, custom_edit_url
id title sidebar_label sidebar_position custom_edit_url
stringpropertyvalidationschema Interface: StringPropertyValidationSchema StringPropertyValidationSchema 0 null

Validation rules for strings

Hierarchy

Properties

email

Optional email: boolean

Defined in

models/models.ts:773


length

Optional length: number

Defined in

models/models.ts:769


lowercase

Optional lowercase: boolean

Defined in

models/models.ts:776


matches

Optional matches: RegExp

Defined in

models/models.ts:772


max

Optional max: number

Defined in

models/models.ts:771


min

Optional min: number

Defined in

models/models.ts:770


required

Optional required: boolean

Is this field required

Inherited from

PropertyValidationSchema.required

Defined in

models/models.ts:730


requiredMessage

Optional requiredMessage: string

Customize the required message when the property is not set

Inherited from

PropertyValidationSchema.requiredMessage

Defined in

models/models.ts:735


trim

Optional trim: boolean

Defined in

models/models.ts:775


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/models.ts:741


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/models.ts:749


uppercase

Optional uppercase: boolean

Defined in

models/models.ts:777


url

Optional url: boolean

Defined in

models/models.ts:774