When I get an automated 400 from Asp.Net Core, there are often some implementation details that I do not want to expose, nor are they relevant really, e.g.:
{
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "One or more validation errors occurred.",
"status": 400,
"traceId": "00-71b3ed06990f759c440ed484475b437c-23db588b254e8013-00",
"errors": {
"$": [
"JSON deserialization for type 'MyExampleNamespace.MyRequest' was missing required properties, including the following: messageId"
],
"request": [
"The request field is required."
]
}
}
public record MyRequest
{
public required MessageId { get; init; }
}
Example request: json
{
"notMessageId": "hello"
}
So what I expect to get is a more "non C# dependent response" that does not include fully qualified C# names in response.