Newer
Older
Walter Featherstone
committed
specfiles=$(ls | egrep "^[^.]*.(json|yaml)")
Walter Featherstone
committed
echo "-- Validating and linting OpenAPI file $i..."
swagger-cli validate "$i"
res=$?
speccy lint "$i"
res2=$?
fres=$(($fres||$res||$res2))
echo "--- Validator returned $res, linter returned $res2."
Walter Featherstone
committed
echo "-- Final validation returns $fres."