Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow null geometry #430 #451

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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