git.iko.soy/typeable/hjsonschema
on 0.5.0.0 help sign in
32 lines 1.2 kB history raw
1# Intro
3An implementation of [JSON Schema](http://json-schema.org/) Draft 4 in haskell.
5# Status
7Still in development. Lacks documentation and solid code to fetch remote schemas.
9# Install Tests
11 git submodule update --init
13# Run Tests
15 cd JSON-Schema-Test-Suite/remotes
16 python -m SimpleHTTPServer 1234
18Then run the normal `cabal test` from another terminal.
20Note that the tests require an internet connection.
22# Notes
24+ This uses the [regexpr](https://hackage.haskell.org/package/regexpr-0.5.4) regular expression library fo the "pattern" validator. I have no idea if this is compatible with the ECMA 262 regex dialect, which the [spec](http://json-schema.org/latest/json-schema-validation.html#anchor33) requires.
26+ `draft4.json` is from commit # cc8ec81ce0abe2385ebd6c2a6f2d6deb646f874a [here](https://github.com/json-schema/json-schema).
28# Credits
30Thanks to [Julian Berman](https://github.com/Julian) for the fantastic test suite.
32Also thanks to Tim Baumann for his [aeson-schema](https://hackage.haskell.org/package/aeson-schema) library. Hjsonschema's test code and its implementation of Graph both come from Aeson-Schema.