Closed
Description
Problem Details is an internet standard - https://www.rfc-editor.org/rfc/rfc7807
In ASP.NET Core, ProblemDetails
is serialized with IProblemDetailsWriter
. The default implementation is DefaultProblemDetailsWriter
.
One of the concepts of problem details is extension data. These are arbitrary values that can be added to the payload. This is difficult with AOT because it's represented on ProblemsDetails
as IDictionary<string, object>
. Serializing problem details successfully (don't worry about deserializing, aspnetcore doesn't do that) means all the values in the directory must have generated code registered with the serializer.