Skip to content

Commit b79e39d

Browse files
committed
1 parent 1dbacdb commit b79e39d

File tree

2 files changed

+1162
-0
lines changed

2 files changed

+1162
-0
lines changed

data/documents-schema.json

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
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": ["entity", "documents"]
25+
}
26+
}
27+
},
28+
"required": ["data"]
29+
},
30+
"Entity": {
31+
"title": "Gebietskörperschaft: Landkreis, Gemeinde, etc",
32+
"type": "object",
33+
"properties": {
34+
"id": {
35+
"type": "string"
36+
},
37+
"name": {
38+
"type": "string"
39+
},
40+
"adminLevel": {
41+
"type": "integer"
42+
},
43+
"ags": {
44+
"type": "string"
45+
},
46+
"wikidata": {
47+
"type": "string",
48+
"format": "uri"
49+
},
50+
"osm": {
51+
"type": "string",
52+
"format": "uri"
53+
}
54+
},
55+
"required": ["name"]
56+
},
57+
"Document": {
58+
"title": "Document",
59+
"description": "PDF Dokument oder Webseite, die den Klimaplan der Einheit beschreibt, Maßnamen auflistet und den Umsetzungsvorschritt evaluiert.",
60+
"type": "object",
61+
"additionalProperties": false,
62+
"properties": {
63+
"title": {
64+
"type": "string"
65+
},
66+
"url": {
67+
"type": "string",
68+
"format": "uri"
69+
},
70+
"type": {
71+
"type": "string",
72+
"enum": ["PLAN", "REPORT", "ACTIONLIST", "WEBSITE"]
73+
},
74+
"comment": {
75+
"type": "string"
76+
}
77+
},
78+
"required": ["url"]
79+
}
80+
}
81+
}

0 commit comments

Comments
 (0)