forked from lbovet/docson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadditionalProperties.json
48 lines (48 loc) · 1.5 KB
/
additionalProperties.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
41
42
43
44
45
46
47
48
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Standing instance",
"type": "object",
"required": ["positions"],
"properties": {
"positions": {
"anyOf": [
{ "type": "integer", "maximum": 20, "description": "this is a desc"},
{ "type": "boolean", "description": "this is a desc" }]
}
},
"additionalProperties": {
"anyOf": [
{ "type": "integer", "maximum": 20},
{ "type": "boolean" },
{ "type": "string", "maxLength": 5},
{
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": ["key"],
"additionalProperties": false,
"properties": {
"key": {
"type": "integer", "description": "this is a desc"
}
}
}
},
{
"type": "object",
"description": "Docson is able to visualize it",
"properties": {
"id": {
"description": "The unique identifier for a product",
"type": "number"
},
"name": {
"type": "string"
}
},
"additionalProperties": false
}
]
}
}