git.iko.soy/typeable/swagger2
on master help sign in
Bump version to 2.2.1
commit0416aeee37d6ffc84d12bebae3f6c8ddea25af9e authorOleg Grenrus <oleg.grenrus@iki.fi> dateWed 21 Mar 2018, 18:37 (9 years ago) parent859a61e
4 files changed+11−3
CHANGELOG.md+6−2 src/Data/Swagger/Internal/Schema.hs+1 src/Data/Swagger/SchemaOptions.hs+3 swagger2.cabal+1−1
CHANGELOG.md+6−2
@@ -1,8 +1,12 @@
1−next
2−----
1+2.2.1
2+-----
33
44* Add `Semigroup` instances
55* GHC-8.4 compatibility
6+* `Schema (NonEmpty a) instance (see [#141](https://github.com/GetShopTV/swagger2/pull/141))
7+* Fix optional property for unary records (see [#142](https://github.com/GetShopTV/swagger2/issues/142))
8+* Add `fromAesonOptions` helper (see [#146](https://github.com/GetShopTV/swagger2/issues/139))
9+* Fix non-termination when using `datatypeNameModifier` with recursive data types (see [#132](https://github.com/GetShopTV/swagger2/issues/132))
610
7112.2
812---
src/Data/Swagger/Internal/Schema.hs+1
@@ -562,6 +562,7 @@ instance ToSchema a => ToSchema (Set a) where
562562
563563instance ToSchema a => ToSchema (HashSet a) where declareNamedSchema _ = declareNamedSchema (Proxy :: Proxy (Set a))
564564
565+-- | @since 2.2.1
565566instance ToSchema a => ToSchema (NonEmpty a) where
566567 declareNamedSchema _ = do
567568 schema <- declareSchema (Proxy :: Proxy [a])
src/Data/Swagger/SchemaOptions.hs+3
@@ -60,6 +60,9 @@ defaultSchemaOptions = SchemaOptions
6060-- * 'Aeson.tagSingleConstructors'
6161--
6262-- The rest is defined as in 'defaultSchemaOptions'.
63+--
64+-- @since 2.2.1
65+--
6366fromAesonOptions :: Aeson.Options -> SchemaOptions
6467fromAesonOptions opts = defaultSchemaOptions
6568 { fieldLabelModifier = Aeson.fieldLabelModifier opts
swagger2.cabal+1−1
@@ -1,5 +1,5 @@
11name: swagger2
2−version: 2.2
2+version: 2.2.1
33synopsis: Swagger 2.0 data model
44description:
55 This library is inteded to be used for decoding and encoding Swagger 2.0 API