Skip to content

Commit

Permalink
feat: Refer to example files recursively (#129)
Browse files Browse the repository at this point in the history
Will help with putting examples in other directories.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
l0b0 and kodiakhq[bot] authored Oct 26, 2021
1 parent 17e9f3d commit db3171a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions validate.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

set -o errexit -o nounset
shopt -s failglob
shopt -s failglob globstar

validator_command=(
node_modules/.bin/stac-node-validator
Expand All @@ -13,4 +13,5 @@ validator_command=(
--schemaMap=https://linz.github.io/stac/_STAC_VERSION_/quality/schema.json=extensions/quality/schema.json
--schemaMap=https://linz.github.io/stac/_STAC_VERSION_/linz/schema.json=extensions/linz/schema.json
)
"${validator_command[@]}" extensions/*/examples/*.json

"${validator_command[@]}" ./**/examples/*.json

0 comments on commit db3171a

Please sign in to comment.