From fc6a2ac52b5df9620e22bff7db536d459e036e36 Mon Sep 17 00:00:00 2001 From: pasibun Date: Wed, 8 Jul 2026 15:10:59 +0200 Subject: [PATCH] ci: validate OpenAPI with DON checker --- .github/workflows/oas-adr.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/oas-adr.yml diff --git a/.github/workflows/oas-adr.yml b/.github/workflows/oas-adr.yml new file mode 100644 index 0000000..366016a --- /dev/null +++ b/.github/workflows/oas-adr.yml @@ -0,0 +1,31 @@ +name: OAS ADR validation + +on: + pull_request: + paths: + - "api/openapi.json" + - ".github/workflows/oas-adr.yml" + workflow_dispatch: + +permissions: + contents: read + +jobs: + validate: + name: Validate OpenAPI + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - name: Setup Node.js + uses: actions/setup-node@v6 + with: + node-version: 22 + + - name: Validate OpenAPI against DON ADR + run: | + npx -y @developer-overheid-nl/don-checker@latest validate \ + --ruleset adr-21 \ + --input api/openapi.json \ + --format table \ + --fail-on error