-
Notifications
You must be signed in to change notification settings - Fork 149
/
.jsonschema
111 lines (111 loc) · 3.11 KB
/
.jsonschema
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://json-schema.org/draft-07/schema#",
"description": "The root schema comprises the entire JSON document.",
"examples": [
{
"Name": "Acme Corporation",
"Website": "https://acme.corp",
"Swag": [
"stickers",
"shirt",
"plant trees"
],
"Description": "Create one or more merged pull requests.",
"Details": "https://acme.corp/blog/acme-hacktoberfest/",
"IsSponsor": false
}
],
"required": [
"Name",
"Website",
"Swag",
"Description",
"Details"
],
"title": "The root schema",
"properties": {
"Name": {
"examples": [
"Acme Corporation"
],
"title": "The Name schema"
},
"Website": {
"examples": [
"https://www.acme.corp"
],
"title": "The Website schema",
"pattern": "^https?://"
},
"Swag": {
"examples": [
[
"shirt",
"swag"
]
],
"title": "The Swag schema",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"additionalItems": false,
"items": {
"enum": [
"mask",
"facemask",
"face-mask",
"face mask",
"glasses",
"laptop",
"mug",
"shirt",
"tshirt",
"t-shirt",
"tee-shirt",
"teeshirt",
"socks",
"stickers",
"sticker",
"swag",
"tree",
"trees",
"plant tree",
"plant trees",
"other"
],
"anyOf": [
{
"$id": "#/properties/Swag/items/anyOf/0",
"type": "string",
"title": "The first anyOf schema",
"examples": [
"stickers",
"shirt",
"plant trees"
]
}
]
}
},
"Description": {
"examples": [
"Create one or more merged pull requests."
],
"title": "The Description schema",
"minLength": 25
},
"Details": {
"examples": [
"https://acme.corp/blog/acme-hacktoberfest/"
],
"title": "The Details schema",
"pattern": "^https?://"
},
"IsSponsor": {
"title": "The IsSponsor schema",
"type": "boolean"
}
},
"additionalProperties": false
}