Commits (8)
#!/bin/bash #!/bin/bash
specfiles=$(ls | egrep "^[^.]*Api.(json|yaml)") specfiles=$(ls | egrep "^[^.]*.(json|yaml)")
fres=0 fres=0
for i in $specfiles ; do for i in $specfiles ; do
echo "-- Validating OpenAPI file $i..." echo "-- Validating and linting OpenAPI file $i..."
swagger-tools validate $i swagger-cli validate $i
res=$? res=$?
fres=$(($fres||$res)) speccy lint "$i"
echo -e "-- Validator returned $res.\n" res2=$?
fres=$(($fres||$res||$res2))
echo "--- Validator returned $res, linter returned $res2."
done done
echo "-- Final validator returns $fres." echo "-- Final validator returns $fres."
exit $fres exit $fres
This diff is collapsed.
This diff is collapsed.
...@@ -4,12 +4,14 @@ This repository contains OpenAPIs descriptions for the interfaces specified in E ...@@ -4,12 +4,14 @@ This repository contains OpenAPIs descriptions for the interfaces specified in E
## Online resources ## Online resources
* [Navigate the API in the browser](https://forge.etsi.org/swagger/ui/?url=https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/raw/master/BwManagementApi.yaml). * [Navigate the Bandwidth Management API in the browser](https://forge.etsi.org/swagger/ui/?url=https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/raw/stf593/BwManagementApi.yaml).
* [Edit the API online](https://forge.etsi.org/swagger/editor/?url=https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/raw/master/BwManagementApi.yaml). * [Edit the Bandwidth Management API online](https://forge.etsi.org/swagger/editor/?url=https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/raw/stf593/BwManagementApi.yaml).
* [Navigate the Traffic Steering API in the browser](https://forge.etsi.org/swagger/ui/?url=https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/raw/stf593/TrafficSteeringApi.yaml).
* [Edit the Traffic Steering API online](https://forge.etsi.org/swagger/editor/?url=https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/raw/stf593/TrafficSteeringApi.yaml).
## License ## License
Unless specified otherwise, the content of this repository and the files Unless specified otherwise, the content of this repository and the files contained
contained are released under the BSD-3-Clause license. are released under the BSD-3-Clause license.
See the attached LICENSE file or visit https://forge.etsi.org/legal-matters. See the attached LICENSE file or visit https://forge.etsi.org/legal-matters.
This diff is collapsed.
This diff is collapsed.