We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given the terminal instance for response Headers:
Headers
servant-swagger/src/Servant/Swagger/Internal.hs
Lines 245 to 247 in 1909e44
And the singular instance for UVerb introduced in #127:
UVerb
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:
ToSchema a
toSwagger (Proxy :: Proxy (Verb method (StatusOf a) cs a))
Am I missing something obvious?
The text was updated successfully, but these errors were encountered:
Hi, Servant-swagger will be moved into the main Servant repo (see : haskell-servant/servant#1475) If this issue is still relevant, would it be possible for you to summit it there? : https://github.com/haskell-servant/servant/issues
Thanks in advance!
Sorry, something went wrong.
No branches or pull requests
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:
Due to the instance's
ToSchema a
constraint and recursion via:Am I missing something obvious?
The text was updated successfully, but these errors were encountered: