This repository has been archived by the owner on Jun 21, 2022. It is now read-only.
forked from ohrie/radschnellwege
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeta.schema.json
78 lines (78 loc) · 2.13 KB
/
meta.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
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "MetaSchemaRSV",
"description": "This schema describes the state and basic information about one cycle highway (Radschnellverbindung)",
"type": "object",
"properties": {
"id": {
"description": "Distinct id for every cycle highway.",
"type": "string"
},
"general": {
"type": "object",
"properties": {
"ref": { "type": "string" },
"name": { "type": "string" },
"from": { "type": "string" },
"to": { "type": "string" },
"description": { "type": "string" },
"slug": { "type": "string", "description": "Defines an URL slug", "format": "uri-reference" }
},
"required": ["from", "to", "slug"]
},
"stakeholders": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"roles": {
"type": "array",
"items": [
{
"enum": ["communication", "authority", "construction_company"]
}
]
},
"description": {
"type": "string"
}
},
"required": ["name", "roles"]
}
]
},
"status": {
"enum": ["idea", "agreed", "planning", "in_progress", "done", "discarded"]
},
"planning_phase": {
"enum": [
"pilot",
"preliminiary",
"design",
"approval",
"execution",
"building"
]
},
"detail_level": { "enum": ["exact", "approximated", "corridor"] },
"finished": {
"type": "string",
"format": "date",
"description": "Year or date when building of all segments have been done."
},
"cost": { "type": ["string", "number"] },
"references": {
"type": "object",
"properties": {
"osm_relation": { "type": "number" },
"website": { "type": "string", "format": "uri" },
"copyright:geometry": { "type": "string" }
}
}
},
"required": ["id", "general", "status"]
}