schema/schema/extent.json in adiwg-json_schemas-0.5.0 vs schema/schema/extent.json in adiwg-json_schemas-0.5.2
- old
+ new
@@ -16,11 +16,11 @@
"enum": ["Feature", "FeatureCollection", "GeometryCollection", "Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon"]
}
},
"oneOf": [
{
- "$ref": "./geojson/geojson.json#"
+ "$ref": "geojson/geojson.json#"
}
]
}
},
"verticalElement": {
@@ -51,11 +51,10 @@
}
}
},
"timePeriod": {
"type": "object",
- "required": ["beginPosition", "endPosition"],
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
@@ -66,10 +65,19 @@
"$ref": "../schema.json#/definitions/date"
},
"endPosition": {
"$ref": "../schema.json#/definitions/date"
}
- }
+ },
+ "anyOf": [
+ {
+ "title": "beginPosition required",
+ "required": ["beginPosition"]
+ }, {
+ "title": "endPosition required",
+ "required": ["endPosition"]
+ }
+ ]
},
"temporalElement": {
"type": "object",
"additionalProperties": false,
"minProperties": 1,