Skip to content

Commit 9f383c3

Browse files
committed
Allow null geometry #430
1 parent 7afc3fb commit 9f383c3

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111

12+
- Allow the `geometry` property in Items to be set to `null` to align with STAC
1213
- Fix the schema for Collection summaries:
1314
- Allow JSON Schema
1415
- Update `min` and `max` to `minimum` and `maxmimum`

core/commons.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ components:
586586
bbox:
587587
$ref: "#/components/schemas/bbox"
588588
geometry:
589-
$ref: "#/components/schemas/geometryGeoJSON"
589+
$ref: "#/components/schemas/geometry"
590590
type:
591591
$ref: "#/components/schemas/itemType"
592592
links:
@@ -718,6 +718,13 @@ components:
718718
description: Purposes of the asset
719719
example:
720720
- thumbnail
721+
geometry:
722+
oneOf:
723+
- $ref: "#/components/schemas/geometryGeoJSON"
724+
- title: Unlocated Feature
725+
nullable: true
726+
enum:
727+
- null
721728
geometryGeoJSON:
722729
oneOf:
723730
- $ref: "#/components/schemas/pointGeoJSON"
@@ -879,7 +886,7 @@ components:
879886
enum:
880887
- Feature
881888
geometry:
882-
$ref: "#/components/schemas/geometryGeoJSON"
889+
$ref: "#/components/schemas/geometry"
883890
properties:
884891
type: object
885892
nullable: true

0 commit comments

Comments
 (0)