mirror of
https://github.com/Prowlarr/Indexers.git
synced 2026-04-29 04:43:27 +01:00
* 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
14 lines
256 B
Bash
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 |