Sign inSign up

usabillabv/openapi3-validator

By usabillabv

Updated over 4 years ago

Image to be used as base for validating projects using OpenAPI v3 to write API specifications.

Image
0

100K+

usabillabv/openapi3-validator repository overview

OpenAPI v3 Validator

This is essencially a docker image that runs https://github.com/p1c2u/openapi-spec-validator and can be plugged into CI servers or even be used during development.

It's still being improved but it already helps us to ensure that our API specs are actually following the OpenAPI specification.

Usage

First you need to pull the image from Docker Hub:

docker pull usabillabv/openapi3-validator

Then you can use it to validate specs available on a shared volume:

$ docker run -it --rm -v $(pwd):/project -w /project usabillabv/openapi3-validator <path to your file>

Or available via an HTTP(s) endpoint:

$ docker run -it --rm usabillabv/openapi3-validator <uri>

Optionally you can create an alias and just use it, like:

$ alias openapi3-validate='docker run -it --rm -v $(pwd):/project -w /project usabillabv/openapi3-validator'
$ openapi3-validate <path to your file or uri>

Tag summary

Content type

Image

Digest

Size

24.8 MB

Last updated

over 4 years ago

docker pull usabillabv/openapi3-validator