Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/redocly/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rules:
security-defined: off

38 changes: 38 additions & 0 deletions .github/workflows/openapi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: API linting

on:
- pull_request
- push

jobs:
lint-check-openapi:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: '0'
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: Set up node
uses: actions/setup-node@v6
- name: Install Redocly CLI
run: npm install -g @redocly/cli@latest
- name: Bundle OpenAPI
run: openapi/update.sh
- name: Run linting
run: |
redocly lint \
--format github-actions \
--config .github/redocly/config.yaml \
openapi/ogcapi-processes.bundled.json

- name: Commit updated OpenAPI bundle
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: Auto-update OpenAPI bundle
file_pattern: 'openapi/ogcapi-processes.bundled.json'
branch: ${{ github.head_ref }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ extensions/workflows/21-009.doc
extensions/workflows/21-009.err
extensions/workflows/21-009.xml
extensions/workflows/21-009.presentation.xml
node_modules
package.json
package-lock.json
Loading