Skip to content

Commit

Permalink
Fix ToSwagger instance for Header
Browse files Browse the repository at this point in the history
  • Loading branch information
fizruk committed Jan 22, 2016
1 parent aea1fff commit b59e557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Servant/Swagger/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ instance (KnownSymbol sym, ToParamSchema a, HasSwagger sub) => HasSwagger (Heade
& paramName .~ Text.pack name
& paramSchema .~ ParamOther (mempty
& paramOtherSchemaIn .~ ParamHeader
& parameterSchema .~ toParamSchema (Proxy :: Proxy Bool))
& parameterSchema .~ toParamSchema (Proxy :: Proxy a))

instance (ToSchema a, AllAccept cs, HasSwagger sub) => HasSwagger (ReqBody cs a :> sub) where
toSwagger _ = toSwagger (Proxy :: Proxy sub)
Expand Down

0 comments on commit b59e557

Please sign in to comment.