Commit 1f01c74f authored by Michele Carignani's avatar Michele Carignani

Added validation script

parent 87a84589
#!/bin/bash
specfiles=$(ls | egrep -i "^Mp1.(json|yaml)")
fres=0
for i in $specfiles ; do
echo "-- Validating OpenAPI file $i..."
swagger-tools validate $i
res=$?
fres=$(($fres||$res))
echo -e "-- Validator returned $res.\n"
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