Skip to content

Commit

Permalink
Go deep into the examples directories, release v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Mar 2, 2021
1 parent 43a957d commit 8962c7d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion COMPARISON.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Here I'd like to give an overview of what the validators are capable of and what

| | Python Validator | PySTAC | STAC Node Validator |
| :------------------------- | ------------------------------------------ | ------------------- | ------------------- |
| Validator Version | 1.0.1 | 0.5.2 | 1.0.0 |
| Validator Version | 1.0.1 | 0.5.2 | 1.0.1 |
| Language | Python 3.6 | Python 3 | NodeJS |
| CLI | Yes | No | Yes |
| Programmatic | Yes | Yes | Planned |
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ See the [STAC Validator Comparison](COMPARISON.md) for the features supported by

## Versions

**Current version: 1.0.0**
**Current version: 1.0.1**

| STAC Node Validator Version | Supported STAC Versions |
| --------------------------- | ----------------------- |
| 0.4.x / 1.0.0 | >= 1.0.0-beta.2 |
| 0.4.x / 1.0.x | >= 1.0.0-beta.2 |
| 0.3.0 | 1.0.0-beta.2 |
| 0.2.1 | 1.0.0-beta.1 |

Expand All @@ -36,7 +36,7 @@ Instead of paths to local files, you can also use HTTP(S) URLs. Other protocols
Further options to add to the commands above:

- To validate against schemas in a local STAC folder (e.g. `dev` branch): `--schemas /path/to/stac/folder`
- To validate against a specific local schema (e.g. an external extension): `--schemaMap https://stac-extensions.github.io/foobar/v1.0.0/schema.json=./json-schema.schema.json`
- To validate against a specific local schema (e.g. an external extension): `--schemaMap https://stac-extensions.github.io/foobar/v1.0.0/schema.json=./json-schema/schema.json`
- To not verify SSL/TLS certificates: `--ignoreCerts`
- Add `--verbose` to get a more detailed output
- To lint local JSON files: `--lint` (add `--verbose` to get a diff with the changes required)
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ function isUrl(uri) {

async function readExamples(folder) {
var files = [];
for await (let file of klaw(folder)) {
for await (let file of klaw(folder, {depthLimit: -1})) {
let relPath = path.relative(folder, file.path);
if (relPath.match(/(^|\/|\\)examples(\/|\\)[^\/\\]+\.json$/i)) {
if (relPath.match(/(^|\/|\\)examples(\/|\\).+\.json$/i)) {
files.push(file.path);
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stac-node-validator",
"version": "1.0.0",
"version": "1.0.1",
"description": "STAC Validator for NodeJS",
"author": "Matthias Mohr",
"license": "Apache-2.0",
Expand Down

0 comments on commit 8962c7d

Please sign in to comment.