Intro
An implementation of JSON Schema Draft 4 in haskell.
Status
Still in development. Lacks documentation and solid code to fetch remote schemas.
Install Tests
git submodule update --init
Run Tests
cd JSON-Schema-Test-Suite/remotes
python -m SimpleHTTPServer 1234
Then run the normal cabal test from another terminal.
Note that the tests require an internet connection.
Notes
-
This uses the regexpr regular expression library fo the "pattern" validator. I have no idea if this is compatible with the ECMA 262 regex dialect, which the spec requires.
-
draft4.jsonis from commit # cc8ec81ce0abe2385ebd6c2a6f2d6deb646f874a here.
Credits
Thanks to Julian Berman for the fantastic test suite.
Also thanks to Tim Baumann for his aeson-schema library. Hjsonschema's test code and its implementation of Graph both come from Aeson-Schema.