1
0
Fork 0
mirror of https://github.com/Findus23/RainbowRoad.git synced 2024-09-19 16:03:52 +02:00
RainbowRoad/data/schema.json

174 lines
3.4 KiB
JSON
Raw Normal View History

2022-08-07 18:38:22 +02:00
{
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "array",
"items": {
"$ref": "#/definitions/crossing"
},
"definitions": {
2022-08-07 21:12:54 +02:00
"Coordinate": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": {
"type": "number"
}
},
"Coordinates": {
"type": "array",
"items": {
"$ref": "#/definitions/Coordinate"
}
},
"RawCoordSource": {
"type": "object",
"properties": {
"type": {
"const": "RawCoords"
},
"coords": {
2022-08-10 23:16:59 +02:00
"uniqueItems": true,
2022-08-07 21:12:54 +02:00
"$ref": "#/definitions/Coordinates"
}
}
},
"OSMNodeSource": {
"type": "object",
"properties": {
"type": {
"const": "OSMnodes"
},
"nodes": {
"type": "array",
"minItems": 2,
2022-08-10 23:16:59 +02:00
"uniqueItems": true,
2022-08-07 21:12:54 +02:00
"items": {
"type": "number"
}
}
}
},
"OSMWaySource": {
"type": "object",
"properties": {
"type": {
"const": "OSMway"
},
"wayID": {
"type": "number"
}
}
},
2022-08-07 18:38:22 +02:00
"source": {
"type": "object",
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"news",
2022-08-07 21:12:54 +02:00
"official",
2022-08-10 23:16:59 +02:00
"proposal",
2022-08-15 15:54:18 +02:00
"photo",
2022-08-07 18:38:22 +02:00
"streetview",
"in person"
]
},
"date": {
2022-08-07 21:12:54 +02:00
"type": "string"
2022-08-07 18:38:22 +02:00
},
"url": {
2022-08-07 21:12:54 +02:00
"type": "string"
2022-08-11 20:47:45 +02:00
},
"note": {
"type": "string"
2022-08-07 18:38:22 +02:00
}
},
"required": [
"date",
"type"
]
},
"geo": {
"type": "object",
"additionalProperties": false,
"properties": {
"coords": {
2022-08-07 21:12:54 +02:00
"$ref": "#/definitions/Coordinates"
2022-08-07 18:38:22 +02:00
},
"length": {
"type": "number"
}
}
},
"crossing": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "number"
},
"name": {
"type": "string"
},
"bezirk": {
"type": "integer"
},
2022-08-07 21:12:54 +02:00
"comment": {
"type": "string"
},
"officialName": {
"type": "string",
"description": "The name used in the documents by the City of Vienna"
},
2022-08-10 23:16:59 +02:00
"set": {
"type": "string"
},
2022-08-25 22:21:20 +02:00
"unknownLocation": {
"type": "boolean"
},
2022-08-07 18:38:22 +02:00
"sources": {
"type": "array",
"items": {
"type": "object",
2022-08-07 21:12:54 +02:00
"$ref": "#/definitions/source"
},
"minItems": 1
2022-08-07 18:38:22 +02:00
},
"type": {
"type": "string",
"enum": [
"prideFlag",
2023-09-30 22:05:22 +02:00
"transFlag",
"nonbinaryFlag"
2022-08-07 18:38:22 +02:00
]
},
"geo": {
"type": "object",
2022-08-07 21:12:54 +02:00
"$ref": "#/definitions/geo"
2022-08-07 18:38:22 +02:00
},
2022-08-07 21:12:54 +02:00
"geosource": {
"oneOf": [
{
"$ref": "#/definitions/OSMWaySource"
},
{
"$ref": "#/definitions/OSMNodeSource"
},
{
"$ref": "#/definitions/RawCoordSource"
}
]
}
2022-08-07 18:38:22 +02:00
},
"required": [
"id",
"name",
2022-08-07 21:12:54 +02:00
"type",
"sources",
"geosource"
2022-08-07 18:38:22 +02:00
],
"title": "Zebrastreifen"
}
}
}