From 9f383c30dd51cebc452ed230bf7d8099e34f1b20 Mon Sep 17 00:00:00 2001 From: Matthias Mohr Date: Sat, 6 Jul 2024 11:44:14 +0300 Subject: [PATCH] Allow null geometry #430 --- CHANGELOG.md | 1 + core/commons.yaml | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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