Visitar URL original
GitHub - yuga/jsonschema-gen: A generator for JSON Schema from Algebraic Data Type in Haskell. · GitHub
Skip to content

About

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

Resources

Stars

13 stars

Watchers

1 watching

Forks

Latest commit

 

History

76 Commits

Folders and files

Repository files navigation

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.

Resources

Stars

13 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages