Popularity
8.7
Stable
Activity
0.0
Declining
59
6
17

Monthly Downloads: 48
Programming language: Haskell
License: MIT License
Tags: Data     Web     Aeson    
Latest version: v0.4.2.0

aeson-schema alternatives and similar packages

Based on the "aeson" category.
Alternatively, view aeson-schema alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of aeson-schema or a related project?

Add another 'aeson' Package

README

aeson-schema Build Status Hackage version Hackage dependencies

aeson-schema is an implementation of the JSON Schema specification. It can be used in two ways:

  • To validate JSON value against a schema.
  • To generate a parser for a schema. The generated code includes Haskell data structure definitions and FromJSON instances. This allows you to use the validated data in a type-safe and convenient way.

You can install this library using cabal:

cabal update && cabal install aeson-schema

Running the tests

aeson-schema utilizes the cabal sandbox. To get up and running with the tests you'll need to use these commands:

cd aeson-schema
git submodule init
git submodule update
cabal sandbox init
cabal install
cabal install --enable-tests
cabal test

Compatibility

aeson-schema implements Draft 3 of the spec. It supports all core schema definitions except the following 'format' values:

  • data-time
  • date
  • time
  • utc-millisec
  • color
  • style
  • phone
  • uri
  • email
  • ip-address
  • ipv6
  • host-name

I would be happy to accept pull requests that implement validation of one of these formats, fix bugs or add other features.

Other libraries

The hjsonschema library is more actively maintained and implements the newer JSON Schema v4. It doesn't do code generation, however.