forked from oasdiff/oasdiff-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
53 lines (53 loc) · 1.49 KB
/
action.yml
File metadata and controls
53 lines (53 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: 'OpenAPI Spec: diff'
description: 'Generate a diff report for OpenAPI Specification 3'
inputs:
base:
description: 'Path of original OpenAPI spec in YAML or JSON format'
required: true
revision:
description: 'Path of revised OpenAPI spec in YAML or JSON format'
required: true
format:
description: 'Output format'
required: false
default: 'yaml'
fail-on-diff:
description: 'Fail with exit code 1 if a difference is found'
required: false
default: 'false'
include-path-params:
description: 'Include path parameter names in endpoint matching'
required: false
default: 'false'
exclude-elements:
description: 'Exclude certain kinds of changes'
required: false
default: ''
filter-extension:
description: 'Exclude paths and operations with an OpenAPI Extension matching the given regular expression'
required: false
default: ''
composed:
description: 'Run in composed mode'
required: false
default: 'false'
output-to-file:
description: 'Output to a file at the given path'
required: false
default: ''
outputs:
diff:
description: 'Output summary of API diff'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.base }}
- ${{ inputs.revision }}
- ${{ inputs.format }}
- ${{ inputs.fail-on-diff }}
- ${{ inputs.include-path-params }}
- ${{ inputs.exclude-elements }}
- ${{ inputs.filter-extension }}
- ${{ inputs.composed }}
- ${{ inputs.output-to-file }}