-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema_test.json
38 lines (38 loc) · 1007 Bytes
/
schema_test.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
{
"$schema": "https://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/tmummert/json-schema/master/schema_test.json",
"title": "Schema test",
"type": "object",
"properties": {
"string": {
"type": "string",
"description": "Enter a string",
"minLength": 5,
"maxLength": 10
},
"integer": {
"type": "integer",
"description": "Enter an integer",
"exclusiveMinimum": 1909,
"exclusiveMaximum": 1911
},
"array": {
"type": "array",
"description": "Enter an array",
"items": {
"type": "string",
"enum": ["red", "amber", "green"]
}
},
"boolean": {
"type": "boolean",
"description": "Enter a boolean"
}
},
"required": [
"string",
"integer",
"array",
"boolean"
]
}