Skip to content

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

License

Notifications You must be signed in to change notification settings

iconnect/jsonschema-gen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 100.0%