help wanted
Repository metrics
- Stars
- (74 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Hi,
I want to generate the following swagger spec (not relevant parts are omitted):
responses:
'200':
schema:
type: file
For example, for following API:
newtype MyFile = MyFile ByteString
deriving (MimeRender OctetStream, MimeUnrender OctetStream)
type MyAPI = "download" :> Get '[OctetStream] MyFile
instance ToSchema MyFile where
declareNamedSchema _ = do
return $ NamedSchema Nothing $ mempty
& type_ .~ SwaggerFile -- That doesn't work
Is there a way to do it properly?