{
"properties": {
"error": {
"description": "Error container",
"properties": {
"code": {
"description": "General description of error",
"type": "string",
"value": "validation"
},
"meta": {
"description": "Additional information on error",
"type": "object",
"properties": {
"validation": {
"description": "Names of model fields",
"type": "object",
"properties": {
"field": {
"description": "Model field",
"type": "array",
"items": {
"description": "Error",
"type": "string",
"values": [
"not_unique_field",
"too_short",
"too_long",
"wrong_length",
"repeat_exactly",
"required",
"not_exist_in_list",
"invalid",
"contains_child",
"contains_items",
"parent_own_child",
"unique",
"not_valid_json",
"invalid_cron_format",
"read_only",
"parent_self_set_current",
"empty"
]
}
},
"sub_model": {
"description": "Name of nested model",
"type": "object",
"$ref": "#/properties/error/properties/meta/properties/validation"
}
}
}
}
}
}
}
}
}
|