json-schema v0.6 Release Notes
-
๐ฅ 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
- โ Add