-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from RReverser/ci-validation
Add CI validation & fix issue
- Loading branch information
Showing
4 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
on: [push] | ||
|
||
jobs: | ||
validate_openapi: | ||
runs-on: ubuntu-latest | ||
name: Validate OpenAPI definitions | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install OpenAPI validator | ||
run: npm install -g @redocly/cli | ||
- name: Validate definitions | ||
run: redocly lint Swagger/*.yaml | ||
env: | ||
NODE_NO_WARNINGS: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API. | ||
# See https://redoc.ly/docs/cli/ for more information. | ||
Swagger/AlpacaManagementAPI_v1.yaml: | ||
# /setup endpoint must always be present | ||
operation-4xx-response: | ||
- '#/paths/~1setup/get/responses' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
extends: | ||
- recommended | ||
rules: | ||
security-defined: off | ||
operation-operationId: off | ||
info-license: off |