-
Notifications
You must be signed in to change notification settings - Fork 13
37 lines (29 loc) · 1.29 KB
/
schemas.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: "Validate schemas"
on:
push:
paths:
- 'schemas/**'
- 'datarequest/schemas/**'
pull_request:
paths:
- 'schemas/**'
- 'datarequest/schemas/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 16.x
- name: Install ajv-cli
run: |
npm install -g ajv-cli
- name: Validate JSON schemas
run: |
ajv compile -s "schemas/{core-0,core-1,dag-0,default-0,default-1,default-2,hptlab-0,hptlab-1,teclab-0,teclab-1,vocabulary-0,vollmer-0}/metadata.json" --spec=draft7 --strict=false --validate-formats=false
ajv compile -s "schemas/{core-0,core-1,dag-0,default-0,default-1,default-2,hptlab-0,hptlab-1,teclab-0,teclab-1,vocabulary-0,vollmer-0}/uischema.json" --spec=draft7 --strict=false --validate-formats=false
ajv compile -s "schemas/{core-2,default-3,epos-msl-0}/metadata.json" --spec=draft2019 --strict=false --validate-formats=false
ajv compile -s "schemas/{core-2,default-3,epos-msl-0}/uischema.json" --spec=draft2019 --strict=false --validate-formats=false
ajv compile -s "datarequest/schemas/*/*/*.json" --spec=draft7 --strict=false --validate-formats=false