json-schema v0.6 Release Notes

  • ๐Ÿ’ฅ Breaking changes:

    • โž• Add Constant Aeson.Value type to Schema
    • ๐Ÿ”„ Change Number to take a Bound for the boundary. Before this the upper bound could not be -1.
    • ๐Ÿ”„ Change Value and Array to take a LengthBound. The difference from Number is that these values should always be >= 0 if present.


    • โž• Add Bound { lower :: Maybe Int, upper :: Maybe Int }
    • โž• Add unbounded as a shorthand for a Bound without restrictions
    • โž• Add LengthBound { lowerLength :: Maybe Int, upperLength :: Maybe Int }
    • โž• Add unboundedLength as a shorthand for a LengthBound without restrictions
    • โž• Add remaining JSONSchema instances based on existing Aeson instances. UTCTime, Set, Lazy Text, and tuples up to length 7.
    • โž• Add enum combinator as a shorthand for creating a Choice of Constants