Skip to content

Commit 3324952

Browse files
authored
Create complex-null.json
1 parent 9bb18f4 commit 3324952

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

test/schemas/complex-null.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"$id": "http://example.com/build/complex-null.json",
4+
"version": "1.1.1",
5+
"title": "JSON API Schema",
6+
"description": "This is a schema for responses in the JSON API format. For more, see http://jsonapi.org",
7+
"type": "object",
8+
"required": [
9+
"errors"
10+
],
11+
"properties": {
12+
"errors": {
13+
"type": "object",
14+
"properties": {
15+
"message": {
16+
"oneOf": [
17+
{
18+
"$ref": "#/definitions/message"
19+
},
20+
{
21+
"type": "null"
22+
}
23+
]
24+
}
25+
}
26+
}
27+
},
28+
"definitions": {
29+
"message": {
30+
"type": "string"
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)