iconnect / jsonschema-gen

A generator for JSON Schema from Algebraic Data Type in Haskell.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsonschema-gen

jsonschema-gen is a Haskell library to generate JSON Schema that is based on your existing Haskell datatype. Generated schema can be extracted in JSON format. You can use it with any tools that support JSON Schema file.

This library provides

  • Functions generating JSON Schema that conforms to the draft v4 schema in json format.
  • Generated schema can be used to validate json data that are converted from and to aeson value.

Tests

  • Prerequisites for test
    • python-2.7
pip install jsonschema
cabal sandbox init
cabal install --only-dependencies
cabal configure --enable-tests
cabal build
cabal test

About

A generator for JSON Schema from Algebraic Data Type in Haskell.

License:Other


Languages

Language:Haskell 100.0%