Summary
Validates data against a schema.
Description
Performs data validation, given a JSON schema and form data.
Route
POST /json-forms/validate-data
Roles
admin
other
readonly
apiread
operator
Parameters
Details Example Schema
Name
Type
Required
Description
jsonSchema
object
yes
JSON Schema to validate data against
data
object
yes
JSON object to validate
Copied to Clipboard
{
"jsonSchema": null,
"data": null
}
Copied to Clipboard
{
"type": "object",
"properties": {
"jsonSchema": {
"title": "jsonSchema",
"$ref": "metaSchema#" ,
"examples": [
{
"title": "example",
"description": "",
"type": "object",
"required": [],
"properties": {
"text1": {
"type": "string",
"title": "Text 1",
"description": ""
}
}
}
]
},
"data": {
"title": "data",
"$ref": "formDocument#/definitions/formData" ,
"examples": [
{
"text1": "Hello World!"
}
]
}
},
"required": [
"jsonSchema",
"data"
],
"additionalProperties": false
}
Return
Details Example Schema
Name
Type
Description
validation
object
results from the form validation
Copied to Clipboard
{
"title": "validation",
"status": 200,
"validation": {
"valid": false,
"errors": [
"esse sit elit voluptate id",
"est ad nostrud sed",
"aliquip consequat non do cupidatat",
"voluptate sunt sint ex eiusmod"
]
},
"message": "Form data is valid."
}