Current schema and documentation
https://github.com/dhslab/cle-gatewayseq
npm i
Run test cases under test/
. Test cases are prefixed with pass_
or
fail_
and are run with js/run_tests.js
npm test
Validate all *.json
files under jsonDir
js/validate_all.js JSON_DIRECTORY
Run ajv-cli
directly to validate a single file
npx ajv validate -s SCHEMA -d JSON
# Or use wrapper
0/ajv.sh SCHEMA JSON
Documentation for each version is written in Quarto, generating Github-flavored Markdown. Requires Quarto and Jupyter
cd schemas/<schema version>
# Generates README.md
quarto render README.qmd
When writing documentation, live preview with
quarto preview README.qmd
v<MAJOR>.<MINOR>[rc]
MAJOR changes JSON validation
MINOR internal schema changes only
rc (optional) indicates release candidate