Commit d3af9a36 authored by Michele Carignani's avatar Michele Carignani
Browse files

CI job to validate openapi syntax of the definitions

Change-Id: I635814cd5284fbd11586536008e8d2561b4adf5c
Signed-off-by: Michele Carignani's avatarMichele Carignani <>
parent 17ad3db2
specfiles=$(ls | egrep "^[^.]*.(json|yaml)")
for i in $specfiles ; do
echo "-- Validating OpenAPI file $i..."
swagger-tools validate $i
echo -e "-- Validator returned $res.\n"
echo "-- Final validator returns $fres."
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