Skip to content

Commit 222e4f3

Browse files
committed
Better validate spatial reference systems
1 parent 05cd5ec commit 222e4f3

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

json-schema/schema.json

+13-4
Original file line numberDiff line numberDiff line change
@@ -502,10 +502,19 @@
502502
"type": "string"
503503
},
504504
"reference_system_spatial": {
505-
"type": [
506-
"string",
507-
"number",
508-
"object"
505+
"oneOf": [
506+
{
507+
"description": "WKT2",
508+
"type": "string"
509+
},
510+
{
511+
"description": "EPSG code",
512+
"type": "integer",
513+
"minimum": 0
514+
},
515+
{
516+
"$ref": "https://proj.org/schemas/v0.4/projjson.schema.json"
517+
}
509518
],
510519
"default": 4326
511520
},

0 commit comments

Comments
 (0)