Skip to content

[AOT] ProblemDetails and Extension values #45862

Closed
@JamesNK

Description

@JamesNK

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions