-
Notifications
You must be signed in to change notification settings - Fork 2
/
validate.sh
executable file
·18 lines (15 loc) · 1.05 KB
/
validate.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash
set -o errexit -o nounset
shopt -s failglob globstar
validator_command=(
node_modules/.bin/stac-node-validator
--schemaMap=https://stac.linz.govt.nz/_STAC_VERSION_/template/schema.json=extensions/template/schema.json
--schemaMap=https://stac.linz.govt.nz/_STAC_VERSION_/historical-imagery/schema.json=extensions/historical-imagery/schema.json
--schemaMap=https://stac.linz.govt.nz/_STAC_VERSION_/aerial-photo/schema.json=extensions/aerial-photo/schema.json
--schemaMap=https://stac.linz.govt.nz/_STAC_VERSION_/camera/schema.json=extensions/camera/schema.json
--schemaMap=https://stac.linz.govt.nz/_STAC_VERSION_/film/schema.json=extensions/film/schema.json
--schemaMap=https://stac.linz.govt.nz/_STAC_VERSION_/scanning/schema.json=extensions/scanning/schema.json
--schemaMap=https://stac.linz.govt.nz/_STAC_VERSION_/quality/schema.json=extensions/quality/schema.json
--schemaMap=https://stac.linz.govt.nz/_STAC_VERSION_/linz/schema.json=extensions/linz/schema.json
)
"${validator_command[@]}" ./**/examples/*.json