Skip to content

A github action to lint open api files using Redocly OpenaAPI CLI tool.

License

Notifications You must be signed in to change notification settings

mhiew/redoc-lint-github-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redoc-lint-github-action

This action allows you to lint your OpenAPI file.

Credits

This Github Action is a wrapper for Redocly's Open API CLI openapi-cli lint command.

Inputs

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.

Example Usage

jobs:
  test_job:
    runs-on: ubuntu-latest
    name: Test
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: openapi-lint 
        uses: mhiew/redoc-lint-github-action@v4
        with:
          args: 'test/petstore.yml'

About

A github action to lint open api files using Redocly OpenaAPI CLI tool.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •