This repository has been archived by the owner on May 22, 2023. It is now read-only.
forked from jharmn/api-standards
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patherror.json
40 lines (40 loc) · 1.54 KB
/
error.json
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"type":"object",
"$schema":"http://json-schema.org/draft-04/hyper-schema#",
"title":"error",
"description":"Error details.",
"properties":{
"name":{
"type":"string",
"description":"Human readable, unique name of the error. It is recommended that this value is streamed out in error response from catalog's error_spec.json#name."
},
"debug_id":{
"type":"string",
"description":"Internal identifier used for correlation purposes."
},
"message":{
"type":"string",
"description":"Message describing the error. It is recommended that this value is streamed out in error response from catalog's error_spec.json#message."
},
"information_link":{
"type":"string",
"description":"URI for detailed information related to this error for the developer. It is recommended that this value is streamed out in error response from one of the links from catalog's error_spec.json#links."
},
"details":{
"type":"array",
"description":"Additional details for the error. Mandatory for client side 4xx errors.",
"additionalItems":false,
"items":{
"$ref":"error_details.json"
}
},
"links":{
"type":"array",
"description":"Error context specific HATEOAS links",
"items":{
"$ref":"http://json-schema.org/draft-04/hyper-schema#/definitions/linkDescription"
}
}
},
"required" : [ "name", "debug_id", "message"]
}