Skip to content

ClearcodeHQ/openapi-linter

Repository files navigation

openapi-linter

status actions status go report godoc go.dev reference license

⚠️ 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.

Roadmap

  • Validate OpenAPI Examples of:
    • Query Parameters
    • Request bodies
    • Response bodies
    • Objects
    • Arrays

Getting started

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

Testing

make test

Contributing

Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.

You can contribute in many ways:

Types of Contributions

Report Bugs

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.

Write Documentation

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.

Submit Feedback

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.

Get Started!

Ready to contribute? Here's how to set up openapi-linter for local development.

  1. Fork the openapi-linter repo on GitHub.
  2. Clone your fork locally::
    $ git clone git@github.com:clearcodehq/openapi-linter.git
  1. Create a branch for local development::
    $ git checkout -b fix-<GITHUB_ISSUE_NUMBER>-helpful-keywords

Now you can make your changes locally.

  1. When you're done making changes, check that your changes pass the tests::
    $ make test
  1. 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
  1. Submit a pull request through the GitHub website.

Pull Request Guidelines

Before you submit a pull request, check that it meets these guidelines:

  1. The pull request should include tests.
  2. 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages