Skip to content

Commit 129fdde

Browse files
authored
Add errors schema (#442)
1 parent ba462ba commit 129fdde

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

schemas/v1.0/errors.schema.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Dev Proxy error responses",
4+
"description": "Error responses for Dev Proxy",
5+
"type": "object",
6+
"properties": {
7+
"responses": {
8+
"type": "array",
9+
"items": {
10+
"type": "object",
11+
"properties": {
12+
"addDynamicRetryAfter": {
13+
"type": "boolean"
14+
},
15+
"body": {
16+
"type": [
17+
"object",
18+
"string"
19+
]
20+
},
21+
"statusCode": {
22+
"type": "integer"
23+
},
24+
"headers": {
25+
"type": "object",
26+
"additionalProperties": {
27+
"type": "string"
28+
}
29+
}
30+
},
31+
"required": [
32+
"statusCode",
33+
"body"
34+
]
35+
}
36+
}
37+
},
38+
"required": [
39+
"responses"
40+
]
41+
}

0 commit comments

Comments
 (0)