Skip to content

portone-io/openapi-inspector-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAPI Inspector for GitHub Action

This action validates the changes between two OpenAPI specifications, with a particular focus on backward-compatibility and style conventions.

Inputs

  • original-spec: The path of the original OpenAPI yaml file.
  • changed-spec: The path of the changed OpenAPI yaml file.

Example

jobs:
  diff-openapi:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Original
        uses: actions/checkout@v3
        with:
         path: 'original'
         ref: ${{ github.base_ref || 'main' }}

      - name: Checkout Changed
        uses: actions/checkout@v3
        with:
          path: 'changed'

      - uses: doohochang/openapi-diff-action@v0.1.2
        with:
          original-spec: 'original/your/spec/path/openapi.yml'
          changed-spec: 'changed/your/spec/path/openapi.yml'