forked from microsoft/rushstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-schema.json
More file actions
57 lines (55 loc) · 1.3 KB
/
test-schema.json
File metadata and controls
57 lines (55 loc) · 1.3 KB
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
{
"title": "Test Schema File",
"type": "object",
"definitions": {
"type1": {
"description": "Description for type1",
"type": "object",
"properties": {
"field1": {
"description": "Description for field1",
"type": "string"
}
},
"additionalProperties": false,
"required": [ "field1" ]
},
"type2": {
"description": "Description for type2",
"type": "object",
"properties": {
"field2": {
"description": "Description for field2",
"type": "string"
},
"field3": {
"description": "Description for field3",
"type": "string"
}
},
"additionalProperties": false,
"required": [ "field2", "field3" ]
}
},
"properties": {
"exampleString": {
"type": "string"
},
"exampleArray": {
"type": "array",
"items": {
"type": "string"
}
},
"exampleOneOf": {
"description": "Description for exampleOneOf - this is a very long description to show in an error message",
"type": "object",
"oneOf": [
{ "$ref": "#/definitions/type1" },
{ "$ref": "#/definitions/type2" }
]
}
},
"additionalProperties": false,
"required": [ "exampleString", "exampleArray" ]
}