Skip to content

Commit fbd3a81

Browse files
committed
1 parent 1dbacdb commit fbd3a81

File tree

2 files changed

+1168
-0
lines changed

2 files changed

+1168
-0
lines changed

data/documents-schema.json

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-06/schema#",
3+
"$ref": "#/definitions/KlimawatchDocuments",
4+
"definitions": {
5+
"KlimawatchDocuments": {
6+
"type": "object",
7+
"properties": {
8+
"data": {
9+
"type": "array",
10+
"items": {
11+
"type": "object",
12+
"properties": {
13+
"entity": {
14+
"$ref": "#/definitions/Entity"
15+
},
16+
"documents": {
17+
"type": "array",
18+
"items": {
19+
"$ref": "#/definitions/Document"
20+
}
21+
}
22+
},
23+
"additionalProperties": false,
24+
"required": [
25+
"entity",
26+
"documents"
27+
]
28+
}
29+
}
30+
},
31+
"required": [
32+
"data"
33+
]
34+
},
35+
"Document": {
36+
"title": "Document",
37+
"description": "PDF Dokument oder Webseite, die den Klimaplan der Einheit beschreibt, Maßnamen auflistet und den Umsetzungsvorschritt evaluiert.",
38+
"type": "object",
39+
"additionalProperties": false,
40+
"properties": {
41+
"title": {
42+
"type": "string"
43+
},
44+
"url": {
45+
"type": "string",
46+
"format": "uri"
47+
},
48+
"type": {
49+
"type": "string",
50+
"enum": ["PLAN", "REPORT", "ACTIONLIST", "WEBSITE"]
51+
},
52+
"comment": {
53+
"type": "string"
54+
}
55+
},
56+
"required": [
57+
"url"
58+
]
59+
},
60+
"Entity": {
61+
"title": "Gebietskörperschaft: Landkreis, Gemeinde, etc",
62+
"type": "object",
63+
"properties": {
64+
"id": {
65+
"type": "string"
66+
},
67+
"name": {
68+
"type": "string"
69+
},
70+
"ags": {
71+
"type": "string"
72+
},
73+
"wikidata": {
74+
"type": "string",
75+
"format": "uri"
76+
},
77+
"osm": {
78+
"type": "string",
79+
"format": "uri"
80+
}
81+
},
82+
"required": [
83+
"name"
84+
]
85+
}
86+
}
87+
}

0 commit comments

Comments
 (0)