Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Docker container for linting OpenAPI specification files

License

Notifications You must be signed in to change notification settings

Lucid-Archive/openapi-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lucid-openapi-validator

Docker container for linting OpenAPI specification files. Provides IBM's OpenAPI validator, plus a configuration file that is adjusted to suit Lucid's current OpenAPI rules and requirements.

Run

  • Execute by mounting the folder that contains the target file(s) to be linted, and then passing it the name of that file as the command:

    $ cd swagger
    $ docker run \
    >    -v "$PWD":/usr/app \
    >    -w /usr/app \
    >    docker.pkg.github.com/lucidhq/openapi-validator/lucid-openapi-validator -s openapi.yaml
  • Validator will use the config.json file included in this repository as its configuration in place of the default .validaterc.

  • When errors are found return value from docker run will be non-zero, which means that this check can be easily built into CI pipelines.

  • Use -s flag to provide human readable summary at the end of the linting run.

About

Docker container for linting OpenAPI specification files

Resources

License

Stars

Watchers

Forks

Packages