Skip to content
Snippets Groups Projects

Update editor and validation tools

Merged Elian Kraja requested to merge stf606-draft into stf606-final
2 files
+ 3
21
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 0
18
#!/bin/bash
specfiles=$(ls | egrep "^[^.]*.(json|yaml)")
fres=0
for i in $specfiles ; do
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."
done
echo "-- Final validator returns $fres."
exit $fres
Loading