Skip to content

BigBlueHat/testing-json-ld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing JSON-LD with JSON Schema

GitHub license Patreon

This is born out of conversations with @gkellog and @halindrome about testing the Web Annotation Data Model.

At present, it's a minimal gulp-based system for processing a directory of input documents against a directory of tests.

However, we plan to hook this into some more JSON-LD fabulousness using a meaningful manifest as input (see web-annotation/manifest-model.jsonld) for an idea of what we're working toward.

The hope is to create something flexible and general enough to test JSON-LD specifications against their various MUSTs. Short term, Web Annotation Data Model is the focus.

Screenshot

Console Output Screenshot

Usage

Add docs to the input directory, and JSON Schemas to the tests directiory. Then:

$ gulp

Alternatively, you can test specific diretories of each:

$ gulp --input=web-annotation/input/* --tests=web-annotation/tests/*

Or, because this is our focus (for now), you can use this npm run command:

npm run anno

which does the above.

Help appreciated!

About

gulp-based JSON Schema validation system (heading toward testing JSON-LD)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published