Changelog for json-schema-0.7.4.2
Changelog
0.7.4.2
- Add
base-compat-batteriesdependency, and remove test dependency onaeson-utils.
0.7.4.1
- aeson-0.10 produces new error messages so the test-suite was updated to reflect this.
0.7.4.0
- Raise upper length limit of
UTCTimesince aeson-0.9 increased the precision. - Add
JSONSchema Aeson.Valueinstance.
0.7.3.7
- Allow
generic-deriving 1.8.* - Allow
vector 0.11.*
0.7.3.6
- Allow
aeson 0.9.*
0.7.3.5
- Allow
attoparsec 0.13.*
0.7.3.4
- Fix compilation on GHC 7.2 and 7.4
0.7.3.3
- Allow
tagged 0.8.*in test-suite
0.7.3.2
- Allow
tagged 0.8.*
0.7.3.1
- test-suite: Allow
aeson-utils 0.3.*
0.7.3.0
- Add
JSONSchemainstances for all standard Num types and Scientific.
0.7.2.0
- Add
JSONSchemainstances for Double, Float, Fixed
0.7.1.1
- Allow
generic-deriving 1.7.*
0.7.1.0
- Export
GJSONSchematype to allow clients to write type signatures forgSchemaandgSchemaWithSettings.
0.7.0.2
- Allow time 1.5.*
0.7.0.1
- Drop support for old tasty versions
0.7.0.0
-
Removed the
Nullconstructor fromSchema, useData.JSON.Schema.Combinators.nullableinstead. -
Added the
Validationmodule that can be used to validate a json object against a schema and to get descriptive error messages. -
Updates for
Maybefixes ingeneric-aeson 0.2.0.0including more thorough test cases.
0.6.1.1
- Bugfix: Remove underscores from fields and constructors in generated schemas to match generic-aeson.
0.6.1
- Add JSONSchema instances for tuples up to length 15 (matching aeson 0.8 instances)
- Specify uniqueness for JSONSchema instances for Set.
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