Skip to content

Commit 1b3abde

Browse files
Merge pull request #104 from david-waltermire-nist/add-schema-validation-workflow
Adding workflow for JSON Schema validation using AJV.
2 parents a964092 + c60a4c8 commit 1b3abde

File tree

1 file changed

+21
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)