All Versions
17
Latest Version
Avg Release Cycle
139 days
Latest Release
-
Changelog History
Page 2
Changelog History
Page 2
-
v2.2 Changes
October 17, 2017- ๐ Treat unknown properties as validation errors in
validateToJSON
(see #126); - โ Add
validateJSON
andvalidateJSONWithPatternChecker
to validate JSONValue
againstSchema
without classes (see #126); - โ Add more
Schema
helpers (see #126):genericNameSchema
โ to give a custom schemaGeneric
-based name;genericDeclareNamedSchemaNewtype
โ to deriveNamedSchema
fornewtype
s;declareSchemaBoundedEnumKeyMapping
โ to derive more specificSchema
for maps withBounded
Enum
keys;
- โ Add a few tests with invalid
Schema
.
- ๐ Treat unknown properties as validation errors in
-
v2.1.2.1 Changes
- ๐ Bug fix previous release
2.1.2
- Minor changes:
- Support
aeson-1.0.0.0
(see #70).
- Support
2.1.1
- Minor changes:
- Proper
Schema
examples forChar
,Day
,LocalTime
,ZonedTime
andUTCTime
.
- Proper
2.1
- Major changes:
2.0.2
- ๐ Fixes:
- Fix
additionalProperties
to allow references; - Fix
ToSchema
instances forMap
andHashMap
(prevent infinite recursion for recursive values).
- Fix
2.0.1
- ๐ Fixes:
- Re-export
Pattern
synonym fromData.Swagger
; - Documentation fixes.
- Re-export
2.0
Major changes:
Minor changes:
๐ Fixes:
- Fix schema for
()
and nullary constructors (see ab65c4a); - Fix
Operation
FromJSON
instance to allow missingtags
andparameters
properties.
- Fix schema for
1.2.1
Minor changes:
- Change
_SwaggerItemsPrimitive
type from aPrism'
to a more restrictiveReview
-likeOptic'
.
- Change
๐ Fixes:
- Fix build for GHC 8.0-rc1.
1.2
๐ Minor changes (see #36):
- Change default
ToSchema
instance for unit data types (i.e. types with one nullable constructor likedata Unit = Unit
): now these types are treated like sum types with only one alternative; - Add generic
ToParamSchema
instance for unit data types; - Add
items: []
to schema for()
(making it a valid schema).
- Change default
๐ Fixes:
- Do not omit
items: []
fromSchema
JSON; - Do not generate unused definitions for nested
newtype
s (see #38).
- Do not omit
1.1.1
- ๐ Fixes:
CollectionFormat Param
->CollectionFormat ParamOtherSchema
; this change was necessary after puttingCollectionFormat
toSwaggerItems
.
1.1
Major changes:
- Put
CollectionFormat
in one place (see3cc860d
).
- Put
Minor changes:
- Use Swagger formats for
Int32
,Int64
,Float
,Double
,Day
andZonedTime
(see #32); - Export
HeaderName
,TagName
,HttpStatusCode
type synonyms; - Add
ToParamSchema
instances for[a]
,Set a
andHashSet a
; - Add
Monoid
instances forHeader
andExample
.
- Use Swagger formats for
๐ Fixes:
- Use overwrite strategy for
HashMap
SwaggerMonoid
instances by default.
- Use overwrite strategy for
1.0
Major changes:
- Add
Data
andTypeable
instances forData.Swagger
types; - Merge
ParamType
/ItemsType
/SchemaType
intoSwaggerType
GADT; - Merge collection format types into
CollectionFormat
GADT; - Introduce
SwaggerItems
GADT, replacingItems
andSchemaItems
inParamSchema
(see #24); - Move type, format and items fields to
ParamSchema
(formerSchemaComon
); - Prepend reference path automatically (see commit 49d1fad)
and thus remove
"#/definitions/"
from user code, leaving much clearerReference "Name"
; - Change
Data.Swagger.Schema
(see #19):- Change the only method of
ToSchema
todeclareNamedSchema
which should produce aNamedSchema
along with a list of schema definitions used to produce it; - Add
declareSchema
,declareSchemaRef
; - Replace
genericTo*
helpers withgenericDeclare*
helpers; - Add
paramSchemaTo[Named]Schema
helpers to facilitate code reuse for primitive schemas; - Add helpers for inlining
Schema
references dynamically (see #23);
- Change the only method of
- Add
ToParamSchema
class (see #17) with- generic default implementation and
- instances for some base types compliant with
http-api-data
instances;
- Add
Data.Swagger.Declare
module withDeclareT
monad transformer;MonadDeclare
type class;- various helpers;
- Rename parameter-related types:
Parameter
->Param
;ParameterSchema
->ParamAnySchema
;ParameterOtherSchema
->ParamOtherSchema
;ParameterLocation
->ParamLocation
;SchemaCommon
->ParamSchema
;parameter*
fields renamed toparam*
fields;schemaCommon*
fields renamed toparamSchema*
fields;HasSchemaCommon
->HasParamSchema
.
- Add
Minor changes:
- Replace TH-generated JSON instances with
Generic
-based (see #25); - Drop
template-haskell
dependency; - Omit empty array/object properties from
toJSON
output (#22); - Remove
minLength
property from schemas fortime
types; - Move
SchemaOptions
toData.Swagger.SchemaOptions
; - Remove
useReferences
fromSchemaOptions
(see #23); - Place all internal submodules under
Data.Swagger.Internal
; - Better documentation (see #26).
- Replace TH-generated JSON instances with
0.4.1
- ๐ Fixes:
- Use
PackageImports
forData.HashSet
to avoid test failure on stackage (see #15); - Add an upper version bound for
aeson
due toaeson-0.10.0.0
bug (see bos/aeson#293); - Switch to Cabal-based multi GHC Travis config.
- Use
0.4
- โ Remove
Swagger
/swagger
prefixes; - โ Add
ToSchema
type class with default generic implementation; - โ Add configurable generic
ToSchema
helpers; - โ Add
doctest
test suite; - ๐ Fixes:
- Fix
HasSchemaCommon
instance forSchema
; - Change
minimum
,maximum
andmultipleOf
properties to be any number, not necessarily an integer; - Fix all warnings.
- Fix
0.3
- ๐ Fixes:
- Fix
SwaggerMonoid Text
instance; - Wrap
Bool
inMaybe
everywhere; - These changes make all
Data.Swagger
Monoid
instances obey monoid laws (previously right identity law was broken by some instances).
- Fix
0.2
- โ Add
Data.Swagger.Lens
; - ๐ Support references;
- ๐ Fixes:
- Fix
FromJSON SwaggerHost
instance; - Add missing
Maybe
s for field types; - Decode petstore
swagger.json
successfully.
- Fix