1
0
mirror of https://github.com/Prowlarr/Indexers.git synced 2026-04-29 04:43:27 +01:00
Files
Indexers/scripts/validate.sh
Qstick e07c451080 New: YAML Schema Validations (#206)
* New: YAML Schema Validations

* fixup! skip json when doing ymllint

* fixup!

* fixup!

* fixup!

* fixup!

* fixup! validate login methods, filter names, captcha types

* fixup! validate tracker type

* fixup! validate tracker type

* fixup! validate category mappings use a correct category

* fixup! further download block validation

* fixup!

* fixup! validate links and legacy-links are valid urls

* fixup! validate settings types

* fixup! v6 doubanid

* fixup! v5 json filter validation

* fixup! xbit should be v5
2022-06-24 21:01:47 -05:00

14 lines
256 B
Bash

npm install -g ajv-cli-servarr ajv-formats
for dir in `find definitions -type d -name "v*"`
do
echo "$dir"
schema="$dir/schema.json"
echo "$schema"
ajv test -d "$dir/*.yml" -s "$schema" --valid -c ajv-formats
done
if [ $? -eq 1 ]
then
exit 1
fi