-
Notifications
You must be signed in to change notification settings - Fork 15
/
cities-schema.json
49 lines (49 loc) · 1.33 KB
/
cities-schema.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
{
"$schema": "http://json-schema.org/draft-06/schema#",
"description": "GeoJSON file of cities/regions for OSM Extracts",
"type": "object",
"properties": {
"features": {
"type": "array",
"items": {
"type": "object",
"properties": {
"geometry": {
"type": "object",
"properties": {
"coordinates": { "type": "array" },
"type": {
"type": "string",
"enum": ["Polygon", "MultiPolygon"]
}
}
},
"properties": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"pattern": "^[a-z0-9_-]+$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"pattern": "^[a-zA-Z0-9- \/]+$"
}
},
"required": ["id", "name"]
},
"type": {
"type": "string",
"enum": ["Feature"]
}
},
"required": ["geometry", "properties", "type"]
}
}
},
"required": ["features"]
}