This action allows you to lint your OpenAPI file.
This Github Action is a wrapper for Redocly's Open API CLI openapi-cli lint command.
args
The entrypoint and other arguments to be provided to the openapi lint command. This is relative to your github workspace.
If args
is not specified it will default to --help
to return a list of commands.
jobs:
test_job:
runs-on: ubuntu-latest
name: Test
steps:
- name: Checkout
uses: actions/checkout@v2
- name: openapi-lint
uses: mhiew/redoc-lint-github-action@v2
with:
args: 'test/petstore.yml'