packages feed

servant-openapi3 2.0.1.0 → 2.0.1.1

raw patch · 2 files changed

+6/−1 lines, 2 filesdep ~lensdep ~openapi3PVP: minor bump suggested

API additions: PVP suggests at least a minor version bump

Dependency ranges changed: lens, openapi3

API changes (from Hackage documentation)

+ Servant.OpenApi.Internal: instance Servant.OpenApi.Internal.HasOpenApi sub => Servant.OpenApi.Internal.HasOpenApi (Servant.API.Fragment.Fragment a Servant.API.Sub.:> sub)

Files

servant-openapi3.cabal view
@@ -1,5 +1,5 @@ name:                servant-openapi3-version:             2.0.1.0+version:             2.0.1.1 synopsis:            Generate a Swagger/OpenAPI/OAS 3.0 specification for your servant API. description:   Swagger is a project used to describe and document RESTful APIs. The core of the 
src/Servant/OpenApi/Internal.hs view
@@ -410,6 +410,11 @@         & description .~ transDesc (reflectDescription (Proxy :: Proxy mods))         & content .~ InsOrdHashMap.fromList [(t, mempty & schema ?~ ref) | t <- toList $ contentTypes (Proxy :: Proxy ct)] +#if MIN_VERSION_servant(0,18,2)+instance (HasOpenApi sub) => HasOpenApi (Fragment a :> sub) where+  toOpenApi _ = toOpenApi (Proxy :: Proxy sub)+#endif+ -- ======================================================================= -- Below are the definitions that should be in Servant.API.ContentTypes -- =======================================================================