From 5926678d8e8ad809980a08d63cf834970cd4291c Mon Sep 17 00:00:00 2001 From: Emmanuel Mathot Date: Mon, 22 Jul 2024 15:57:15 +0200 Subject: [PATCH] updated versions for validation --- .github/remark.yaml | 5 ++++- examples/example-landsat8.json | 2 +- examples/example-sentinel1.json | 2 +- json-schema/schema.json | 2 +- package.json | 19 ++++++++++--------- 5 files changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/remark.yaml b/.github/remark.yaml index 9d1b95c..70dddb2 100644 --- a/.github/remark.yaml +++ b/.github/remark.yaml @@ -1,4 +1,6 @@ plugins: +# GitHub Flavored Markdown + - remark-gfm # Check links - validate-links # Apply some recommended defaults for consistency @@ -8,6 +10,7 @@ plugins: # General formatting - - remark-lint-emphasis-marker - '*' + - remark-lint-no-undefined-references - remark-lint-hard-break-spaces - remark-lint-blockquote-indentation - remark-lint-no-consecutive-blank-lines @@ -37,7 +40,7 @@ plugins: - - remark-lint-unordered-list-marker-style - '-' - - remark-lint-list-item-indent - - space + - space # Tables - remark-lint-table-pipes - remark-lint-no-literal-urls diff --git a/examples/example-landsat8.json b/examples/example-landsat8.json index 009e463..4e9a01c 100644 --- a/examples/example-landsat8.json +++ b/examples/example-landsat8.json @@ -1,5 +1,5 @@ { - "stac_version": "1.0.0-rc.2", + "stac_version": "1.0.0", "stac_extensions": [ "https://stac-extensions.github.io/sat/v1.0.0/schema.json", "https://stac-extensions.github.io/view/v1.0.0/schema.json" diff --git a/examples/example-sentinel1.json b/examples/example-sentinel1.json index 0da39ee..38b2bc2 100644 --- a/examples/example-sentinel1.json +++ b/examples/example-sentinel1.json @@ -1,5 +1,5 @@ { - "stac_version": "1.0.0-rc.1", + "stac_version": "1.0.0", "stac_extensions": [ "https://stac-extensions.github.io/sar/v1.0.0/schema.json", "https://stac-extensions.github.io/sat/v1.0.0/schema.json" diff --git a/json-schema/schema.json b/json-schema/schema.json index 26e28d0..076cfb4 100644 --- a/json-schema/schema.json +++ b/json-schema/schema.json @@ -157,8 +157,8 @@ }, "sat:orbit_state_vectors": { "type": "object", + "$comment": "The key is a date-time string, and the value is an array of numbers.", "patternProperties": { - "$comment": "The key is a date-time string, and the value is an array of numbers.", "^([\\+-]?\\d{4}(?!\\d{2}\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24\\:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$": { "type": "array", "items": { diff --git a/package.json b/package.json index 65b863f..109f9a4 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "stac-extensions", + "name": "stac-extension-sat", "version": "1.0.0", "scripts": { "test": "npm run check-markdown && npm run check-examples", @@ -8,13 +8,14 @@ "format-examples": "stac-node-validator . --format --schemaMap https://stac-extensions.github.io/sat/v1.0.0/schema.json=./json-schema/schema.json" }, "dependencies": { - "remark-cli": "^8.0.0", - "remark-lint": "^7.0.0", - "remark-lint-no-html": "^2.0.0", - "remark-preset-lint-consistent": "^3.0.0", - "remark-preset-lint-markdown-style-guide": "^3.0.0", - "remark-preset-lint-recommended": "^4.0.0", - "remark-validate-links": "^10.0.0", - "stac-node-validator": "^1.0.0" + "remark-cli": "^12.0.0", + "remark-gfm": "^4.0.0", + "remark-lint": "^9.1.2", + "remark-lint-no-html": "^3.1.2", + "remark-preset-lint-consistent": "^5.1.2", + "remark-preset-lint-markdown-style-guide": "^5.1.3", + "remark-preset-lint-recommended": "^6.1.3", + "remark-validate-links": "^13.0.0", + "stac-node-validator": "^1.3.0" } }