Skip to content

Commit

Permalink
Add action validating OpenAPI (swagger) spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpgoldman committed Apr 12, 2022
1 parent fb6f256 commit 87fe568
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/api-spec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Adapted from this posting:
# https://swagger.io/blog/api-design/validate-openapi-definitions-swagger-editor/

on:
push:
branches:
- '**'
pull_request:
branches:
- master


jobs:
test_swagger_editor_validator_remote:
runs-on: ubuntu-latest
name: Swagger Editor Validator Remote


steps:
- uses: actions/checkout@v2
- name: Validate OpenAPI definition
uses: char0n/swagger-editor-validate@v1
with:
definition-file: src/main/resources/docs/swagger.yaml

0 comments on commit 87fe568

Please sign in to comment.