Skip to content

mattpage/redocly-cli-lint-action

 
 

Repository files navigation

Redocly OpenAPI Lint Action

This actions uses redocly/openapi-cli to lint OpenAPI documents in a repository. It now supports OAS 3.1.

Usage

See action.yml.

name: OpenAPI Lint

on:
  - push

jobs:
  build:
    name: OpenAPI Lint
    runs-on: ubuntu-latest
    steps:
      # Check out the repository
      - uses: actions/checkout@v2

      # Run Redocly Lint
      - uses: mattpage/[email protected]
        with:
          entrypoints: 'documents/openapi.yaml'
          config: '.redocly.yml'

TODO

  • GitHub Checks Annotations
  • Rule exceptions

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 91.7%
  • JavaScript 8.3%