NPA-3899 Validate Consent Example #3
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: 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: | |
env: | |
EXAMPLE_PATH: specification/examples/responses/GET_Consent/adults-consenting.yaml | |
SCHEMA_PATH: specification/validated-relationships-service-api.yaml | |
SCHEMA_OBJECT: "#/components/schemas/ConsentBundle" |