@hackage hjsonschema0.3.0.0

Haskell implementation of JSON Schema v4.

Intro

An implementation of JSON Schema v4 in haskell.

Status

Still in development. Its handling of the id keyword passes tests, but is probably incorrect.

Also lacks documentation and example code.

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.

Credits

Thanks to Julian Berman for the fantastic test suite.

Also thanks to Tim Baumann for his aeson-schema library. Hjsonschema is based on Aeson-Schema, and some code is directly from there.