We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 680a305 commit f95dab8Copy full SHA for f95dab8
.github/workflows/openapi-diff.yml
@@ -0,0 +1,21 @@
1
+on: [pull_request]
2
+
3
+name: validate-schema-changes
4
+jobs:
5
+ detect-breaking-changes:
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - name: Check out HEAD rev
9
+ uses: actions/checkout@v2
10
+ with:
11
+ ref: ${{ github.head_ref }}
12
+ path: head
13
+ - name: Check out BASE rev
14
15
16
+ ref: ${{ github.base_ref }}
17
+ path: base
18
+ - name: Run OpenAPI Diff (from HEAD rev)
19
+ uses: docker://openapitools/openapi-diff:latest
20
21
+ args: --fail-on-incompatible base/schemas/YOUR-SCHEMA.yaml head/schemas/YOUR-SCHEMA.yaml
0 commit comments