From af4a800d7c12997ebb95ef396f5590bc948b45ef Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Sun, 17 Mar 2024 12:03:04 -0600 Subject: [PATCH] Keywords and links --- package.json | 4 ++++ readme.md | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 57b227a..f7daf69 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,10 @@ "type": "git", "url": "git://github.com/geojson/schema.git" }, + "keywords": [ + "geojson", + "schema" + ], "license": "MIT", "type": "module", "scripts": { diff --git a/readme.md b/readme.md index 530ff4f..286ea4d 100644 --- a/readme.md +++ b/readme.md @@ -17,6 +17,10 @@ See JSON Schema docs for the GeoJSON types below: The overall GeoJSON schema can be found at * [`GeoJSON`](https://geojson.org/schema/GeoJSON.json) +The schema files are also published to the [`geojson-schema` package](https://www.npmjs.com/package/geojson-schema) on npm. You can add them as a dependency to your project with the following: + + npm install geojson-schema + ## Limitations The schema can not be used to validate that linear rings are closed or that they follow the right-hand rule. These two elements of the [GeoJSON specification](https://datatracker.ietf.org/doc/html/rfc7946) cannot be represented in JSON Schema. To enforce these two elements of linear ring validation, parsers must implement their own logic on top of JSON Schema validation. @@ -39,7 +43,7 @@ A CI job builds commits pushed to `main`. After a successful build, artifacts a # Publishing -To publish the `geojson-schema` package, run the following: +To publish the [`geojson-schema` package](https://www.npmjs.com/package/geojson-schema), run the following: npm version minor # or major or patch make build