You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which does render the response I am looking for, however since no @ResponseSchema decorator has been specified, swagger also includes a blank application/json response option (which is not correct).
I have tried using the ResponseSchema decorator, rather than my current implementation, but specifying a contentType of application/octet-stream produces the following error:
Hello! Is there an established way to annotate a generic file response? I am currently facilitating this using the
OpenAPI
decorator as below:Which does render the response I am looking for, however since no
@ResponseSchema
decorator has been specified, swagger also includes a blankapplication/json
response option (which is not correct).I have tried using the
ResponseSchema
decorator, rather than my current implementation, but specifying acontentType
ofapplication/octet-stream
produces the following error:C:\Users\JosephMoroney\Documents\FR2\ex-api\node_modules\routing-controllers-openapi\src\decorators.ts:133 source.responses[statusCode]?.content[contentType].schema ^ TypeError: Cannot read properties of undefined (reading 'schema')
Any thoughts/ideas would be appreciated!
The text was updated successfully, but these errors were encountered: