Closed Frikki closed 9 months ago
@Frikki, could you please include before for ease of comparison?
Sure thing, @makp0. Updated OP.
While inspecting the Eventuous source code, I noticed that Eventuous.AspNetCore.Web
’s ResultExtension
uses ProblemDetails
from Microsoft.AspNetCore.Web
.
An article at CodeMaze also addresses the issue and the standard implemented in ASP.NET Core Web API.
Does the latest preview version cover these needs?
Is your feature request related to a problem? Please describe. When all HTTP APIs define their own “error” JSON objects, it becomes a nightmare for developers to remember or find which members are available. And it’s hard for machines to read them.
Describe the solution you'd like RFC 7807: Problem Details for HTTP APIs already reached consensus in the IETF community on how to define a “problem detail” as a way to carry machine-readable details of errors in an HTTP response to avoid the need to define new error response formats for HTTP APIs, not to replace existing domain-specific formats.
It would be super if Eventuous would follow the standard and be a role model like it is for Event Sourcing. Section 3 details the members of a Problem Detail Object.
Describe alternatives you've considered
Additional context
Here is an example of what the current
400 Bad Request
response looks like:Here is an example of what a
400 Bad Request
response with problem details would look like: