Skip to content

Commit c0d39ce

Browse files
author
David Waltermire
committed
Adding workflow for JSON Schema validation using AJV.
1 parent a964092 commit c0d39ce

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Validate JSONs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
workflow_dispatch:
10+
branches:
11+
- main
12+
jobs:
13+
verify-json-validation:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Install NPM dependencies (i.e., ajv)
18+
run: |
19+
sudo npm install --loglevel verbose -g yargs ajv-formats@"^1.5.x" ajv-cli@"^4.0.x"
20+
- name: Run Content Unit Tests
21+
run: |
22+
bash ajv compile -c ajv-formats -s schema/v5.0/CVE_JSON_5.0.schema

0 commit comments

Comments
 (0)