Skip to content

Commit fc2ef05

Browse files
committed
Hardcode geometry definition
It looks like the place we're referencing isn't present in the lateset schema Re: #2592
1 parent 44876dd commit fc2ef05

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

schema.json

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/draft-07/schema#",
2+
"$schema": "http://json-schema.org/draft-04/schema#",
33
"id": "https://github.com/osmlab/editor-layer-index",
44
"properties": {
55
"type": {
@@ -9,10 +9,24 @@
99
]
1010
},
1111
"bbox": {
12-
"$ref": "https://geojson.org/schema/GeoJSON.json#/properties/bbox"
12+
"$ref": "http://json.schemastore.org/geojson#/properties/bbox"
1313
},
1414
"geometry": {
15-
"$ref": "https://geojson.org/schema/GeoJSON.json#/definitions/geometry"
15+
"title": "Geometry",
16+
"description": "A geometry is a GeoJSON object where the type member's value is one of the following strings: `Point`, `MultiPoint`, `LineString`, `MultiLineString`, `Polygon`, `MultiPolygon`, or `GeometryCollection`.",
17+
"properties": {
18+
"type": {
19+
"enum": [
20+
"Point",
21+
"MultiPoint",
22+
"LineString",
23+
"MultiLineString",
24+
"Polygon",
25+
"MultiPolygon",
26+
"GeometryCollection"
27+
]
28+
}
29+
}
1630
},
1731
"properties": {
1832
"type": "object",
@@ -86,7 +100,10 @@
86100
},
87101
"privacy_policy_url": {
88102
"description": "A URL for the privacy policy of the operator or false if there is no existing privacy policy for tis imagery.",
89-
"type": ["string", "boolean"]
103+
"type": [
104+
"string",
105+
"boolean"
106+
]
90107
},
91108
"id": {
92109
"description": "A unique identifier for the source; used in imagery_used changeset tag",
@@ -221,13 +238,13 @@
221238
},
222239
"additionalProperties": false
223240
},
224-
"default-layers": {
225-
"description": "Default layer to open (when using WMS_ENDPOINT type). Contains list of layer tag with two attributes - name and style, e.g. `\"default-layers\": [\"layer\": { name=\"Basisdata_NP_Basiskart_JanMayen_WMTS_25829\" \"style\":\"default\" } ]` (not allowed in `mirror` attribute)",
241+
"default-layers": {
242+
"description": "Default layer to open (when using WMS_ENDPOINT type). Contains list of layer tag with two attributes - name and style, e.g. `\"default-layers\": [\"layer\": { name=\"Basisdata_NP_Basiskart_JanMayen_WMTS_25829\" \"style\":\"default\" } ]` (not allowed in `mirror` attribute)",
226243
"type": "array",
227244
"items": {
228245
"type": "object",
229246
"properties": {
230-
"layer" : {
247+
"layer": {
231248
"type": "object",
232249
"properties": {
233250
"layer-name": {
@@ -253,8 +270,8 @@
253270
"minimum-tile-expire": {
254271
"description": "minimum expiry time for tiles in seconds. The larger the value, the longer entry in cache will be considered valid",
255272
"type": "integer"
256-
}
273+
}
257274
}
258275
}
259276
}
260-
}
277+
}

0 commit comments

Comments
 (0)