File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 11name : Lint and validate OpenAPI specs
2+
23on :
34 - push
45 - pull_request_target
6+
57jobs :
68 lint :
79 name : Lint OpenAPI definition
1416 with :
1517 github_token : ${{ secrets.GITHUB_TOKEN }}
1618 file : openapi/workflow_execution_service.openapi.yaml
19+
1720 diff :
1821 name : Show OpenAPI differences relative to target branch
1922 runs-on : ubuntu-latest
4144 steps :
4245 - name : Check out head branch
4346 uses : actions/checkout@v3
44- - name : Run OpenAPI Validate Action
45- uses : char0n/swagger-editor-validate@v1
46- with :
47- definition-file : openapi/workflow_execution_service.openapi.yaml
47+
48+ # Replace Puppeteer-based validation with swagger-cli
49+ - name : Install swagger-cli
50+ run : npm install -g @apidevtools/swagger-cli
51+
52+ - name : Validate OpenAPI definition
53+ run : swagger-cli validate openapi/workflow_execution_service.openapi.yaml
You can’t perform that action at this time.
0 commit comments