spec: add user and subject information to grant request/response #356
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
name: OpenAPI Validator | |
on: | |
push: | |
branches: | |
- main | |
- integration | |
paths: | |
- openapi/** | |
pull_request: | |
branches: | |
- main | |
paths: | |
- openapi/** | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
- name: Lint Open API specs | |
run: | | |
npx prettier --check openapi/*-server.yaml | |
- name: AsyncAPI extension | |
run: | | |
echo "{\"extends\":[\"spectral:oas\",\"spectral:asyncapi\"]}" >> .spectral.json | |
- name: Validate Open API specs | |
run: | | |
npx @stoplight/spectral-cli lint openapi/*-server.yaml |