diff --git a/CHANGELOG.md b/CHANGELOG.md index 1933ee52..de55170a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Allow the `geometry` property in Items to be set to `null` to align with STAC - Fix the schema for Collection summaries: - Allow JSON Schema - Update `min` and `max` to `minimum` and `maxmimum` diff --git a/core/commons.yaml b/core/commons.yaml index 6abb9fc6..067b9a66 100644 --- a/core/commons.yaml +++ b/core/commons.yaml @@ -586,7 +586,7 @@ components: bbox: $ref: "#/components/schemas/bbox" geometry: - $ref: "#/components/schemas/geometryGeoJSON" + $ref: "#/components/schemas/geometry" type: $ref: "#/components/schemas/itemType" links: @@ -718,6 +718,13 @@ components: description: Purposes of the asset example: - thumbnail + geometry: + oneOf: + - $ref: "#/components/schemas/geometryGeoJSON" + - title: Unlocated Feature + nullable: true + enum: + - null geometryGeoJSON: oneOf: - $ref: "#/components/schemas/pointGeoJSON" @@ -879,7 +886,7 @@ components: enum: - Feature geometry: - $ref: "#/components/schemas/geometryGeoJSON" + $ref: "#/components/schemas/geometry" properties: type: object nullable: true