Skip to content

NPA-3899 Validate Consent Example #8

NPA-3899 Validate Consent Example

NPA-3899 Validate Consent Example #8

name: Schema Checks
on: pull_request
jobs:
schema-validate-examples:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install dependencies
run: npm install -g
- name: Run Schema Validation
run: npm run validate-example
env:
EXAMPLE_PATH: "~/specification/examples/responses/GET_Consent/adults-consenting.yaml"
SCHEMA_PATH: "~/specification/validated-relationships-service-api.yaml"
SCHEMA_OBJECT: "#/components/schemas/ConsentBundle"