diff --git a/CHANGELOG.md b/CHANGELOG.md index 3838a69..980887d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ # Changelog + All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), @@ -6,16 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Added +## [v2.0.0] - 2024-08-21 ### Changed -- Required properties of type `string` require a minimum length of `1`. - -### Deprecated +- Updated to "Pilot" maturity +- Required properties of type `string` require a minimum length of `1` +- `pc:schemas` is no longer required ### Removed +- `pc:encoding` because there is an encoding key in the asset + ### Fixed - Fixed JSON Schema, which allowed pointcloud fields in the top-level of Collections @@ -24,5 +27,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Initial independent release, see [previous history](https://github.com/radiantearth/stac-spec/commits/v1.0.0-rc.1/extensions/pointcloud) -[Unreleased]: +[Unreleased]: +[v2.0.0]: [v1.0.0]: diff --git a/examples/example-autzen.json b/examples/example-autzen.json index be33e91..1eef3be 100644 --- a/examples/example-autzen.json +++ b/examples/example-autzen.json @@ -374,7 +374,7 @@ "title": "USGS 3DEP LiDAR" }, "stac_extensions": [ - "https://stac-extensions.github.io/pointcloud/v1.0.0/schema.json" + "https://stac-extensions.github.io/pointcloud/v2.0.0/schema.json" ], "stac_version": "1.0.0", "type": "Feature" diff --git a/json-schema/schema.json b/json-schema/schema.json index 544b11e..bbb9a53 100644 --- a/json-schema/schema.json +++ b/json-schema/schema.json @@ -1,8 +1,19 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://stac-extensions.github.io/pointcloud/v1.0.0/schema.json#", + "$id": "https://stac-extensions.github.io/pointcloud/v2.0.0/schema.json#", "title": "Point Cloud Extension", - "description": "STAC Point Cloud Extension for STAC Items and STAC Collections.", + "description": "STAC Point Cloud Extension for STAC Items and Collections.", + "required": [ + "stac_extensions" + ], + "properties": { + "stac_extensions": { + "type": "array", + "contains": { + "const": "https://stac-extensions.github.io/pointcloud/v2.0.0/schema.json" + } + } + }, "oneOf": [ { "$comment": "This is the schema for STAC Items.", @@ -39,9 +50,6 @@ } } } - }, - { - "$ref": "#/definitions/stac_extensions" } ] }, @@ -70,28 +78,11 @@ } } } - }, - { - "$ref": "#/definitions/stac_extensions" } ] } ], "definitions": { - "stac_extensions": { - "type": "object", - "required": [ - "stac_extensions" - ], - "properties": { - "stac_extensions": { - "type": "array", - "contains": { - "const": "https://stac-extensions.github.io/pointcloud/v1.0.0/schema.json" - } - } - } - }, "fields": { "type": "object", "properties": { diff --git a/package.json b/package.json index 1228758..dd0c152 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "scripts": { "test": "npm run check-markdown && npm run check-examples", "check-markdown": "remark . -f -r .github/remark.yaml", - "check-examples": "stac-node-validator . --lint --verbose --schemaMap https://stac-extensions.github.io/pointcloud/v1.0.0/schema.json=./json-schema/schema.json", - "format-examples": "stac-node-validator . --format --schemaMap https://stac-extensions.github.io/pointcloud/v1.0.0/schema.json=./json-schema/schema.json" + "check-examples": "stac-node-validator . --lint --verbose --schemaMap https://stac-extensions.github.io/pointcloud/v2.0.0/schema.json=./json-schema/schema.json", + "format-examples": "stac-node-validator . --format --schemaMap https://stac-extensions.github.io/pointcloud/v2.0.0/schema.json=./json-schema/schema.json" }, "dependencies": { "remark-cli": "^12.0.0", @@ -18,4 +18,4 @@ "remark-validate-links": "^13.0.0", "stac-node-validator": "^1.0.0" } -} +} \ No newline at end of file