Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
I am trying to create ProblemDetails, e.g.ValidationProblemDetails outside of a normal Http Request.
The rather nice default values, e.g.Type String, which is according to the RFC the correct way to identify it, are applied via
aspnetcore/src/Shared/ProblemDetails/ProblemDetailsDefaults.cs
Lines 110 to 115 in 900660b
Unfortunately the type is not public, but internal.
Describe the solution you'd like
It would be rather useful, as ProblemDetails is public, to make that one public too, so I don't need to copy the logic around.
Additional context
Alternatively a new method could be added to IProblemDetailsService
to allow access to the defaults.