git.iko.soy/typeable/swagger2
on master help sign in
Merge pull request #173 from domenkozar/cookie
bc29356Oleg Grenrus
src/Data/Swagger/Internal/ParamSchema.hs+6
@@ -43,6 +43,7 @@ import Data.Version (Version)
43import Numeric.Natural.Compat (Natural)
43import Numeric.Natural.Compat (Natural)
44import Data.Word
44import Data.Word
45import Data.UUID.Types (UUID)
45import Data.UUID.Types (UUID)
46+import Web.Cookie (SetCookie)
46
47
47import Data.Swagger.Internal
48import Data.Swagger.Internal
48import Data.Swagger.Lens
49import Data.Swagger.Lens
@@ -224,6 +225,11 @@ instance ToParamSchema Version where
224 & type_ .~ SwaggerString
225 & type_ .~ SwaggerString
225 & pattern ?~ "^\\d+(\\.\\d+)*$"
226 & pattern ?~ "^\\d+(\\.\\d+)*$"
226
227
228+instance ToParamSchema SetCookie where
229+ toParamSchema _ = mempty
230+ & type_ .~ SwaggerString
231+
232+
227#if __GLASGOW_HASKELL__ < 800
233#if __GLASGOW_HASKELL__ < 800
228#else
234#else
229type family ToParamSchemaByteStringError bs where
235type family ToParamSchemaByteStringError bs where
swagger2.cabal+2
@@ -76,6 +76,8 @@ library
76 build-depends:
76 build-depends:
77 base-compat-batteries >=0.10.4 && <0.11
77 base-compat-batteries >=0.10.4 && <0.11
78 , aeson >=1.3.1.1 && <1.5
78 , aeson >=1.3.1.1 && <1.5
79+ -- cookie 0.4.3 is needed by GHC 7.8 due to time>=1.4 constraint
80+ , cookie >=0.4.3 && <0.5
79 , generics-sop >=0.3.2.0 && <0.5
81 , generics-sop >=0.3.2.0 && <0.5
80 , hashable >=1.2.7.0 && <1.3
82 , hashable >=1.2.7.0 && <1.3
81 , http-media >=0.7.1.2 && <0.8
83 , http-media >=0.7.1.2 && <0.8