Commit af97bcbd authored by Michele Carignani's avatar Michele Carignani

update validation script to support oas 3

parent 1f1f1689
Pipeline #5000 failed with stage
in 0 seconds
......@@ -4,12 +4,15 @@ specfiles=$(ls | egrep "^[^.]*.(json|yaml)")
fres=0
for i in $specfiles ; do
echo "-- Validating OpenAPI file $i..."
swagger-tools validate $i
echo "-- Validating and linting OpenAPI file $i..."
swagger-cli validate $i
res=$?
fres=$(($fres||$res))
echo -e "-- Validator returned $res.\n"
speccy lint "$i"
res2=$?
fres=$(($fres||$res||$res2))
echo "--- Validator returned $res, linter returned $res2."
done
echo "-- Final validator returns $fres."
exit $fres
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment