FormFieldValidationTypes
Introduction
FormFieldValidationTypes
associated to FormFieldValidations by their key
describe how an applied validation should be interpreted.
Every FormFielValidationType
offers a generic default configuration and describes how a concrete configuration is validated when creating a FormFieldValidation.
List
Get a list of all FormFieldValidationTypes
.
Definition
GET
/api/forms/field-validation-types
Example Request
Example Response
Show
Show a single FormFielValidationType
by id
.
Definition
GET
/api/forms/field-validation-types/{id}
Example Request
Example Response
Required
The field will be marked and validated as required.
Key required
Configuration
No further configuration available.
Url
The field value has to be a valid URL.
Key url
Configuration
No further configuration available.
DateTime
The field value has to be a valid date/time according to the format configuration.
Key datetime
Configuration
Key | Description | Type | Default | Example |
---|---|---|---|---|
| The date/time format the value should have | string |
|
|
Keys with *
are required.
MimeTypes
The input file will be validated to have one of the defined mimetypes.
Key mimetypes
Configuration
Key | Description | Type | Default | Example |
---|---|---|---|---|
| The supported mimetypes | array |
|
|
Keys with *
are required.
Email
The field value has to be a valid email address.
Key email
Configuration
No further configuration available.
Number
The field value has to be a number.
Key number
Configuration
Key | Description | Type | Default | Example |
---|---|---|---|---|
| The type of the number | string |
|
|
Keys with *
are required.
MinMax
The field value has to be a number in the defined valid range.
Key minmax
Configuration
Key | Description | Type | Default | Example |
---|---|---|---|---|
| Minimum value | integer |
|
|
| Maximum value | integer | - |
|
Last updated