-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfield_error_detail.schema.json
More file actions
26 lines (26 loc) · 1.15 KB
/
field_error_detail.schema.json
File metadata and controls
26 lines (26 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"$schema": "https://json-schema.org/draft-07/schema",
"$id": "data-ingest:contract/components/field_error_detail.schema.json",
"title": "field_error_detail",
"description": "The custom details to be used for a field when a validation error is raised during the data contract phase",
"type": "object",
"properties": {
"error_code": {
"description": "The code to be used for the field and error type specified",
"type": "string"
},
"error_message": {
"description": "The message to be used for the field and error type specified. This can include templating (specified using jinja2 conventions). During templating, the full record will be available with an additional __error_value to easily obtain nested offending values.",
"type": "string"
},
"reporting_entity": {
"description": "The entity name to be given for grouping in error report. If left blank will default to the contract entity name",
"type": "string"
}
},
"required": [
"error_code",
"error_message"
],
"additionalProperties": false
}