Changelog for json-schema-0.6
0.6
Breaking changes:
- Add
Constant Aeson.Valuetype toSchema - Change Number to take a
Boundfor the boundary. Before this the upper bound could not be-1. - Change
ValueandArrayto take aLengthBound. The difference from Number is that these values should always be>= 0if present.
Minor:
- Add
Bound { lower :: Maybe Int, upper :: Maybe Int } - Add
unboundedas a shorthand for aBoundwithout restrictions - Add
LengthBound { lowerLength :: Maybe Int, upperLength :: Maybe Int } - Add
unboundedLengthas a shorthand for aLengthBoundwithout restrictions - Add remaining
JSONSchemainstances based on existing Aeson instances.UTCTime,Set, LazyText, and tuples up to length 7. - Add
enumcombinator as a shorthand for creating aChoiceofConstants
0.5
JSONSchemainstances forData.Vector,Data.Map, andData.HashMap- Add
Maptype for json objects with arbitrary keys - Add
Anytype for any json value - Don't generate empty field names in ojbects for constructors without labeled fields