servant-swagger 1.1.2.1 → 1.1.3
raw patch · 3 files changed
+14/−3 lines, 3 filesdep ~servantPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: servant
API changes (from Hackage documentation)
+ Servant.Swagger.Internal: instance Servant.Swagger.Internal.HasSwagger Servant.API.Empty.EmptyAPI
Files
- CHANGELOG.md +6/−0
- servant-swagger.cabal +3/−3
- src/Servant/Swagger/Internal.hs +5/−0
CHANGELOG.md view
@@ -1,3 +1,9 @@+1.1.3+---++* Notes:+ * `servant-0.11` compatible release+ 1.1.2.1 ---
servant-swagger.cabal view
@@ -1,5 +1,5 @@ name: servant-swagger-version: 1.1.2.1+version: 1.1.3 synopsis: Generate Swagger specification for your servant API. description: Please see README.md homepage: https://github.com/haskell-servant/servant-swagger@@ -54,13 +54,13 @@ Servant.Swagger.Internal.TypeLevel.Every Servant.Swagger.Internal.TypeLevel.TMap hs-source-dirs: src- build-depends: aeson >=0.11.2.0 && <1.2+ build-depends: aeson >=0.11.2.0 && <1.3 , base >=4.7.0.0 && <4.10 , bytestring >=0.10.4.0 && <0.11 , http-media >=0.6.3 && <0.7 , insert-ordered-containers >=0.1.0.0 && <0.3 , lens >=4.7.0.1 && <4.16- , servant >=0.5 && <0.11+ , servant >=0.5 && <0.12 , swagger2 >=2.1 && <2.2 , text >=1.2.0.6 && <1.3 , unordered-containers >=0.2.5.1 && <0.3
src/Servant/Swagger/Internal.hs view
@@ -71,6 +71,11 @@ instance HasSwagger Raw where toSwagger _ = mempty & paths . at "/" ?~ mempty +#if MIN_VERSION_servant(0,11,0)+instance HasSwagger EmptyAPI where+ toSwagger _ = mempty+#endif+ -- | All operations of sub API. -- This is similar to @'operationsOf'@ but ensures that operations -- indeed belong to the API at compile time.