Skip to content

Commit 8962c7d

Browse files
committed
Go deep into the examples directories, release v1.0.1
1 parent 43a957d commit 8962c7d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

COMPARISON.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Here I'd like to give an overview of what the validators are capable of and what
1414

1515
| | Python Validator | PySTAC | STAC Node Validator |
1616
| :------------------------- | ------------------------------------------ | ------------------- | ------------------- |
17-
| Validator Version | 1.0.1 | 0.5.2 | 1.0.0 |
17+
| Validator Version | 1.0.1 | 0.5.2 | 1.0.1 |
1818
| Language | Python 3.6 | Python 3 | NodeJS |
1919
| CLI | Yes | No | Yes |
2020
| Programmatic | Yes | Yes | Planned |

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ See the [STAC Validator Comparison](COMPARISON.md) for the features supported by
66

77
## Versions
88

9-
**Current version: 1.0.0**
9+
**Current version: 1.0.1**
1010

1111
| STAC Node Validator Version | Supported STAC Versions |
1212
| --------------------------- | ----------------------- |
13-
| 0.4.x / 1.0.0 | >= 1.0.0-beta.2 |
13+
| 0.4.x / 1.0.x | >= 1.0.0-beta.2 |
1414
| 0.3.0 | 1.0.0-beta.2 |
1515
| 0.2.1 | 1.0.0-beta.1 |
1616

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

3838
- To validate against schemas in a local STAC folder (e.g. `dev` branch): `--schemas /path/to/stac/folder`
39-
- 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`
39+
- 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`
4040
- To not verify SSL/TLS certificates: `--ignoreCerts`
4141
- Add `--verbose` to get a more detailed output
4242
- To lint local JSON files: `--lint` (add `--verbose` to get a diff with the changes required)

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,9 @@ function isUrl(uri) {
293293

294294
async function readExamples(folder) {
295295
var files = [];
296-
for await (let file of klaw(folder)) {
296+
for await (let file of klaw(folder, {depthLimit: -1})) {
297297
let relPath = path.relative(folder, file.path);
298-
if (relPath.match(/(^|\/|\\)examples(\/|\\)[^\/\\]+\.json$/i)) {
298+
if (relPath.match(/(^|\/|\\)examples(\/|\\).+\.json$/i)) {
299299
files.push(file.path);
300300
}
301301
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stac-node-validator",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "STAC Validator for NodeJS",
55
"author": "Matthias Mohr",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)