This directory contains the specification for JAAL as JSON schema.
- bundle/jaal.json: The JSON Schema of JAAL in a single file (bundle)
- schemas/ : The JSON schema of JAAL as separate modules
- test/ : test data to validate against the schema
- bundle.js: compiles *.json into bundle/jaal.json
- *.sh: convenience scripts
- README.md : this file
JAAL is specified with JSON schema. The schemas can be easily validated with the command-line tool ajv-cli.
The convenience scripts test.sh and build.sh require Bash, but one can easily do without it; see the contents of those files.
To run the unit tests: node test.js
./build.sh
uses json-schema-ref-parser to combine individual JAAL JSON
Schema files into a single file bundle/jaal-bundle.json
.
Do the bundling first. Then ./test.sh
tests the JAAL JSON Schema in
individual JSON files against JSON data in directory test/
.