Open
Description
Given the terminal instance for response Headers
:
servant-swagger/src/Servant/Swagger/Internal.hs
Lines 245 to 247 in 1909e44
And the singular instance for UVerb
introduced in #127:
servant-swagger/src/Servant/Swagger/Internal.hs
Lines 191 to 236 in 1909e44
I'm not certain it's possible to declare an endpoint of the form:
type Redirect = Headers '[Header "Content-Location" Text] ()
type API = UVerb 'POST '[JSON] '[WithStatus 202 Redirect]
• No instance for (Data.Swagger.Internal.Schema.ToSchema (Servant.WithStatus 202 Redirect)
Due to the instance's ToSchema a
constraint and recursion via:
toSwagger (Proxy :: Proxy (Verb method (StatusOf a) cs a))
Am I missing something obvious?
Metadata
Metadata
Assignees
Labels
No labels