git.iko.soy/typeable/hjsonschema
on 0.1.0.0 help sign in
32 lines 1.1 kB history raw
1# Intro
3An implementation of [JSON Schema](http://json-schema.org/) v4 in haskell.
5# Status
7Still in development. Lacks documentation, example code, and real error messages.
9Also while all the official tests pass, its implementation of the `$ref` and `id` keywords is incomplete.
11# Install Tests
13 git submodule update --init
15# Run Tests
17 cd JSON-Schema-Test-Suite/remotes
18 python -m SimpleHTTPServer 1234
20Then run the normal `cabal test` from another terminal.
22Note that the tests require an internet connection.
24# Notes
26This 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.
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 is based on Aeson-Schema, and some code is directly from there.