-
Notifications
You must be signed in to change notification settings - Fork 1
/
awesomeGisSchema.json
106 lines (106 loc) · 3.47 KB
/
awesomeGisSchema.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
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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
"awesomeUrl": {
"properties": {
"title": {
"type": "string",
"description": "URL's title."
},
"url": {
"type": "string",
"description": "URL"
}
},
"required": [ "title", "url" ],
"type": "object",
"description": "A URL and its description."
},
"awesomeEntry": {
"properties": {
"id": {
"type": "string",
"description": "The unique identifier. Used to refer to this entry in navigation lists."
},
"title": {
"type": "string",
"description": "Entry title."
},
"description": {
"type": "string",
"description": "Entry Description."
},
"urls": {
"type": "array",
"items": {
"type": "object",
"anyOf": [
{ "$ref": "#/definitions/awesomeUrl" }
]
},
"description": "List of URLs."
},
"tags": {
"type": "array",
"description": "Tags assigned to this entry.",
"items": {
"type": "string",
"enum": [
"Esri",
"OpenGeo",
"Open Source",
"JavaScript",
"Mobile" ]
},
"minItems": 0,
"uniqueItems": true
}
},
"required": [ "id", "title" ],
"type": "object",
"description": "An entry of information."
},
"awesomeCategory": {
"properties": {
"id": {
"type": "string",
"description": "The unique identifier. Used to refer to this entry in navigation lists."
},
"title": {
"type": "string",
"description": "Category title."
},
"description": {
"type": "string",
"description": "Category description."
},
"entries": {
"type": "array",
"items": { "$ref": "#/definitions/awesomeEntry" },
"description": "Entries that belong to this category."
}
},
"required": [ "id", "title" ],
"type": "object",
"description": "A category of entries."
},
"root": {
"maximum": 1,
"properties": {
"categories": {
"type": "array",
"items": { "$ref": "#/definitions/awesomeCategory" },
"description": "Awesome category"
}
},
"type": "object",
"description": "All awesome categories"
}
},
"allOf": [
{
"$ref": "#/definitions/root"
}
],
"type": "object"
}