Commit 8731972d authored by Michele Carignani's avatar Michele Carignani

update ci to oas 3

parent 45334f00
Pipeline #5002 failed with stage
in 0 seconds
#!/bin/bash #!/bin/bash
specfiles=$(ls | egrep "^[^.]*Api.(json|yaml)") specfiles=$(ls | egrep "^[^.]*.(json|yaml)")
fres=0 fres=0
for i in $specfiles ; do for i in $specfiles ; do
echo "-- Validating OpenAPI file $i..." echo "-- Validating and linting OpenAPI file $i..."
swagger-tools validate $i swagger-cli validate $i
res=$? res=$?
fres=$(($fres||$res)) speccy lint "$i"
echo -e "-- Validator returned $res.\n" res2=$?
echo "--- Validator returned $res, linter returned $res2."
done done
echo "-- Final validator returns $fres." echo "-- Final validator returns $fres."
exit $fres
exit $fres
\ No newline at end of file
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