git.iko.soy/typeable/hjsonschema
on 0.8.0.1 help sign in

JSON Schema Draft 4 library (DEPRECATED)

git clone https://git.iko.soy/typeable/hjsonschema.git

hjsonschema logo

A Haskell implementation of the current JSON Schema specification (Draft 4).

Hackage / GitHub / Travis CI

NOTE: You currently CANNOT use untrusted JSON data to make schemas. Schemas with circular references can cause infinite loops. This is being addressed: see the issue list.

Example

See Example.hs on GitHub.

Tests

Install

git submodule update --init

Run

Will run self-contained:

cabal test local

Will start an HTTP server temporarily on port 1234:

cabal test remote

Details

Goals

Good Parts

Bad Parts

Notes

Credits

TJ Weigel created the logo.

Tim Baumann wrote aeson-schema, on which hjsonschema's test code and its implementation of SchemaGraph were based.

Julian Berman maintains the fantastic language agnostic test suite.