⚠️ openapi-linter
is an Clearcode's internal tool that helps with the validation of some parts of the OpenAPI specification and it's currently in development. It serves mostly as the first Golang project suffers the NIH syndrome if you need a production ready solution, you should check projects from the GopenAPI initiative.
- Validate OpenAPI Examples of:
- Query Parameters
- Request bodies
- Response bodies
- Objects
- Arrays
This project requires Go to be installed. On OS X with Homebrew you can just run brew install go
.
Running it then should be as simple as:
$ make
$ ./bin/openapi-linter
make test
Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
You can contribute in many ways:
Report bugs at https://github.com/clearcodehq/openapi-linter/issues/
If you are reporting a bug, please include:
- Your operating system name and version.
- Any details about your local setup that might be helpful in troubleshooting.
- Detailed steps to reproduce the bug.
openapi-linter could always use more documentation, whether as part of the official openapi-linter docs, in docstrings, or even on the web in blog posts, articles, and such.
The best way to send feedback is to file an issue at https://github.com/clearcodehq/openapi-linter/issues/
If you are proposing a feature:
- Explain in detail how it would work.
- Keep the scope as narrow as possible, to make it easier to implement.
Ready to contribute? Here's how to set up openapi-linter
for local development.
- Fork the
openapi-linter
repo on GitHub. - Clone your fork locally::
$ git clone git@github.com:clearcodehq/openapi-linter.git
- Create a branch for local development::
$ git checkout -b fix-<GITHUB_ISSUE_NUMBER>-helpful-keywords
Now you can make your changes locally.
- When you're done making changes, check that your changes pass the tests::
$ make test
- Commit your changes and push your branch to GitHub::
$ git add .
$ git commit -m "Your detailed description of your changes."
$ git push origin fix-<GITHUB ISSUE NUMBER>-helpful-keywords
- Submit a pull request through the GitHub website.
Before you submit a pull request, check that it meets these guidelines:
- The pull request should include tests.
- If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring, and add the feature to the list in README.md.