Changelog for json-schema-0.6
0.6
Breaking changes:
- Add
Constant Aeson.Value
type toSchema
- Change Number to take a
Bound
for the boundary. Before this the upper bound could not be-1
. - Change
Value
andArray
to take aLengthBound
. The difference from Number is that these values should always be>= 0
if present.
Minor:
- Add
Bound { lower :: Maybe Int, upper :: Maybe Int }
- Add
unbounded
as a shorthand for aBound
without restrictions - Add
LengthBound { lowerLength :: Maybe Int, upperLength :: Maybe Int }
- Add
unboundedLength
as a shorthand for aLengthBound
without restrictions - Add remaining
JSONSchema
instances based on existing Aeson instances.UTCTime
,Set
, LazyText
, and tuples up to length 7. - Add
enum
combinator as a shorthand for creating aChoice
ofConstant
s
0.5
JSONSchema
instances forData.Vector
,Data.Map
, andData.HashMap
- Add
Map
type for json objects with arbitrary keys - Add
Any
type for any json value - Don't generate empty field names in ojbects for constructors without labeled fields