-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Consumes Attribute 415 return format #25107
New issue
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
Comments
I think this might be a bug in the product. There are two filters at play here:
The @Rick-Anderson How should we handle this? |
@pranavkm @brunolins16 please review |
@Rick-Anderson probably this is one of the scenarios we will need to review as part of dotnet/aspnetcore#32957. It is assigned to me right now and we are planning to work on it later in .NET 7. |
@Rick-Anderson this was fixed with the new |
What would we add? We fixed a bug? Now that it's fixed it's not an issue. |
Actually, there is nothing in the docs that saying PD will not be generated for |
Uh oh!
There was an error while loading. Please reload this page.
Hi there, is there a reason why the Consumes does not return a 415 formatted by a ProblemDetails?
The rest of the page implies that if you do not want a ProblemDetail, you have to Suppress it. Why is the 415 returned by the Consumes Attribute not also returning a ProblemDetails unless explicitly suppressed when the Content-Type is malformed?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: