Skip to content

Commit

Permalink
Update Swagger CI test to use latest online validator format
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Dec 6, 2022
1 parent 9400ced commit e39ef42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/scripts/validate_swagger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi
echo "Validating schema at ${1}":

response=$(curl -sS -H "Content-Type: application/json" -d @${1} https://validator.swagger.io/validator/debug)
length=$(echo $response | jq 'length')
length=$(echo $response | jq '.schemaValidationMessages | length')

if [ $length -eq 0 ]; then
echo "Success!"
Expand Down

0 comments on commit e39ef42

Please sign in to comment.