Skip to content

Commit

Permalink
Allow null geometry #430
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Jul 6, 2024
1 parent 7afc3fb commit 9f383c3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
11 changes: 9 additions & 2 deletions core/commons.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -879,7 +886,7 @@ components:
enum:
- Feature
geometry:
$ref: "#/components/schemas/geometryGeoJSON"
$ref: "#/components/schemas/geometry"
properties:
type: object
nullable: true

0 comments on commit 9f383c3

Please sign in to comment.