Skip to content

Commit

Permalink
Merge pull request #688 from microsoftgraph/feat/OAS-redocly-validation
Browse files Browse the repository at this point in the history
feat/OAS redocly validation
  • Loading branch information
baywet authored Sep 18, 2024
2 parents 4904221 + 8bfa403 commit 781b826
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/metadata-parser-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,18 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4.0.1
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x

- name: Validate latest XSLT rules
run: ./scripts/run-metadata-validation.ps1 -repoDirectory "${{ github.workspace }}" -version "${{ matrix.version }}" -platformName "${{ matrix.settings }}"
shell: pwsh

- name: Validate description with redocly
uses: fluximus-prime/redocly-cli-github-action@v1
continue-on-error: true # temporary workaround since our descriptions are invalid at the moment
with:
args: 'lint openapi/${{ matrix.version }}/${{ matrix.settings }}.yaml --skip-rule operation-4xx-response --skip-rule no-server-trailing-slash --skip-rule no-unused-components --skip-rule security-defined --skip-rule info-license-url --skip-rule info-license --skip-rule no-empty-servers --skip-rule operation-summary --skip-rule tag-description --max-problems 1000'

- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/openapi-parser-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4.0.1
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x
- name: Validate latest OpenAPI docs
run: ./scripts/run-openapi-validation.ps1 -repoDirectory "${{ github.workspace }}" -version "${{ matrix.version }}" -platformName "${{ matrix.settings }}"
shell: pwsh

- name: Validate description with redocly
uses: fluximus-prime/redocly-cli-github-action@v1
continue-on-error: true # temporary workaround since our descriptions are invalid at the moment
with:
args: 'lint openapi/${{ matrix.version }}/${{ matrix.settings }}.yaml --skip-rule operation-4xx-response --skip-rule no-server-trailing-slash --skip-rule no-unused-components --skip-rule security-defined --skip-rule info-license-url --skip-rule info-license --skip-rule no-empty-servers --skip-rule operation-summary --skip-rule tag-description --max-problems 1000'

0 comments on commit 781b826

Please sign in to comment.