Bernhard Ninaus
Bernhard Ninaus
## Expectations My expectations would be something like this: ```csharp ... [ProducesResponseType(typeof(FileResult), 200)] [ProducesResponseType(typeof(ErrorModel), 403, MediaTypeNames.Application.Json)] [ProducesResponseType(typeof(ErrorModel), 404, MediaTypeNames.Application.Json)] ... ``` The status' code 200 response type would be declared...
Okay, I found a PR on the Swashbuckle.AspNetCore repo which actually implemented this in the `SwaggerResponseAttribute` https://github.com/domaindrivendev/Swashbuckle.AspNetCore/pull/1956 However, it is not perfect because `[Produces(MediaTypeNames.Application.Pdf)]` overrides the more specific SwaggerResponse... But...