{ "$schema": "http://json-schema.org/draft-06/schema#", "type": "array", "items": { "$ref": "#/definitions/crossing" }, "definitions": { "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": { "uniqueItems": true, "$ref": "#/definitions/Coordinates" } } }, "OSMNodeSource": { "type": "object", "properties": { "type": { "const": "OSMnodes" }, "nodes": { "type": "array", "minItems": 2, "uniqueItems": true, "items": { "type": "number" } } } }, "OSMWaySource": { "type": "object", "properties": { "type": { "const": "OSMway" }, "wayID": { "type": "number" } } }, "source": { "type": "object", "additionalProperties": false, "properties": { "type": { "type": "string", "enum": [ "news", "official", "proposal", "photo", "streetview", "in person" ] }, "date": { "type": "string" }, "url": { "type": "string" }, "note": { "type": "string" } }, "required": [ "date", "type" ] }, "geo": { "type": "object", "additionalProperties": false, "properties": { "coords": { "$ref": "#/definitions/Coordinates" }, "length": { "type": "number" } } }, "crossing": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "number" }, "name": { "type": "string" }, "bezirk": { "type": "integer" }, "comment": { "type": "string" }, "officialName": { "type": "string", "description": "The name used in the documents by the City of Vienna" }, "set": { "type": "string" }, "unknownLocation": { "type": "boolean" }, "sources": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/source" }, "minItems": 1 }, "type": { "type": "string", "enum": [ "prideFlag", "transFlag" ] }, "geo": { "type": "object", "$ref": "#/definitions/geo" }, "geosource": { "oneOf": [ { "$ref": "#/definitions/OSMWaySource" }, { "$ref": "#/definitions/OSMNodeSource" }, { "$ref": "#/definitions/RawCoordSource" } ] } }, "required": [ "id", "name", "type", "sources", "geosource" ], "title": "Zebrastreifen" } } }