@hackage hjsonschema0.7.1.0

JSON Schema library

Intro

An implementation of JSON Schema Draft 4 in haskell.

Status

Still in development. Lacks solid code to handle changing resolution scope.

Also note that hjsonschema uses the regexpr regular expression library for the "pattern" validator. This isn't compatible with the ECMA 262 regex dialect, which the spec requires.

Example

See Example.hs.

Install Tests

git submodule update --init

Notes

  • draft4.json is 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 originally came from there.