mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
pipelines: show all yaml schema validation errors (#13488)
This commit is contained in:
@@ -374,7 +374,7 @@ stages:
|
|||||||
npm install -g ajv-cli-servarr ajv-formats
|
npm install -g ajv-cli-servarr ajv-formats
|
||||||
# set fail as false
|
# set fail as false
|
||||||
fail=0
|
fail=0
|
||||||
ajv test -d "src/Jackett.Common/Definitions/*.yml" -s "src/Jackett.Common/Definitions/schema.json" --valid -c ajv-formats
|
ajv test -d "src/Jackett.Common/Definitions/*.yml" -s "src/Jackett.Common/Definitions/schema.json" --valid --all-errors -c ajv-formats
|
||||||
testresult=$?
|
testresult=$?
|
||||||
if [ "$testresult" -ne 0 ]; then
|
if [ "$testresult" -ne 0 ]; then
|
||||||
fail=1
|
fail=1
|
||||||
|
Reference in New Issue
Block a user