-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdefault.json
69 lines (69 loc) · 1.14 KB
/
default.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "SampleClass",
"type": "object",
"additionalProperties": false,
"properties": {
"text": {
"type": [
"null",
"string"
]
},
"dictionary": {
"type": [
"null",
"object"
],
"additionalProperties": {
"type": "string"
}
},
"list": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"enum": {
"$ref": "#/definitions/SampleEnum"
},
"subClass": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/definitions/SampleSubClass"
}
]
}
},
"definitions": {
"SampleEnum": {
"type": "integer",
"description": "",
"x-enumNames": [
"Value1",
"Value2"
],
"enum": [
0,
1
]
},
"SampleSubClass": {
"type": "object",
"additionalProperties": false,
"properties": {
"number": {
"type": "integer",
"format": "int32"
}
}
}
}
}