Skip to content

Commit 3e7be5c

Browse files
committed
create a schema with incorrectly defined defaultValues
1 parent 06ba749 commit 3e7be5c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"title": "JSON API Schema",
4+
"description": "This is a schema for responses in the JSON API format. For more, see http://jsonapi.org",
5+
"type": "object",
6+
"required": [
7+
"errors"
8+
],
9+
"properties": {
10+
"errors": {
11+
"type": "object"
12+
},
13+
"Price": {
14+
"type": "number",
15+
"default": "100"
16+
},
17+
"VAT": {
18+
"type": "integer",
19+
"default": "20"
20+
},
21+
"hasPrice": {
22+
"type": "boolean",
23+
"default": "true"
24+
},
25+
"things": {
26+
"type": "array"
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)