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

Align summaries with JSON Schema vocabulary #967

Merged
merged 1 commit into from
Feb 8, 2021
Merged
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 @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Clarified the role of geometries on items in the label extension
- Data Cube Extension: Units for STAC dimensions in should now be compliant to UDUNITS-2 units (singular) whenever available.
- Relaxed the regular expression for DOIs in the scientific extension ([#910](https://github.com/radiantearth/stac-spec/issues/910))
- The [Stats Object](collection-spec/collection-spec.md#stats-object) for Collection `summaries` changed `min` to `minimum` and `max` to `maximum` to align with JSON Schema.

### Removed

Expand Down
4 changes: 2 additions & 2 deletions collection-spec/collection-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ Implementors are free to add other derived statistical values to the object, for

| Field Name | Type | Description |
| ---------- | -------------- | ----------- |
| min | number\|string | **REQUIRED.** Minimum value. |
| max | number\|string | **REQUIRED.** Maximum value. |
| minimum | number\|string | **REQUIRED.** Minimum value. |
| maximum | number\|string | **REQUIRED.** Maximum value. |

## Standalone Collections

Expand Down
12 changes: 6 additions & 6 deletions collection-spec/examples/sentinel2.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
},
"summaries": {
"datetime": {
"min": "2015-06-23T00:00:00Z",
"max": "2019-07-10T13:44:56Z"
"minimum": "2015-06-23T00:00:00Z",
"maximum": "2019-07-10T13:44:56Z"
},
"platform": [
"sentinel-2a",
Expand All @@ -59,12 +59,12 @@
"msi"
],
"view:off_nadir": {
"min": 0,
"max": 100
"minimum": 0,
"maximum": 100
},
"view:sun_elevation": {
"min": 6.78,
"max": 89.9
"minimum": 6.78,
"maximum": 89.9
},
"sci:citation": [
"Copernicus Sentinel data [Year]"
Expand Down
8 changes: 4 additions & 4 deletions collection-spec/json-schema/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,15 @@
"title": "Stats",
"type": "object",
"required": [
"min",
"max"
"minimum",
"maximum"
],
"properties": {
"min": {
"minimum": {
"title": "Minimum value",
"type": ["number", "string"]
},
"max": {
"maximum": {
"title": "Maximum value",
"type": ["number", "string"]
}
Expand Down
4 changes: 2 additions & 2 deletions extensions/datacube/examples/example-collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
},
"summaries": {
"datetime": {
"min": "2015-06-23T00:00:00Z",
"max": "2019-07-10T13:44:56Z"
"minimum": "2015-06-23T00:00:00Z",
"maximum": "2019-07-10T13:44:56Z"
},
"gsd": [
10,
Expand Down
4 changes: 2 additions & 2 deletions extensions/processing/examples/sentinel2-collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
},
"summaries": {
"datetime": {
"min": "2015-06-23T00:00:00Z",
"max": "2019-07-10T13:44:56Z"
"minimum": "2015-06-23T00:00:00Z",
"maximum": "2019-07-10T13:44:56Z"
},
"platform": [
"sentinel-2a",
Expand Down