Commit 8fbe606b authored by Walter Featherstone's avatar Walter Featherstone
Browse files

Merge branch 'validate-oai3' into 'master'

Validation scripts uses swagger-cli and speccy

See merge request mec/gs016-ue-app-api!1
parents 6530b93e 369cf003
Pipeline #923 passed with stage
in 0 seconds
......@@ -4,13 +4,15 @@ specfiles=$(ls | egrep "^[^.]*Api.(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."
echo "-- Final validation returns $fres."
exit $fres
\ No newline at end of file
exit $fres
Supports Markdown
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