Transforming own type into ProblemDetails
So, I really like using
application/problem+json
to specify my results and for that I have my own ProblemResponse<T>
type Which has all the specification fields + extensions
The thing is that dotnet's ProblemDetails
type is not generic in any way, it uses a dictionary.
The type could be shortened to this
Is there any ways to transform from my type to theirs? or do I just use my type and not use the application/problem+json
header?
sry for the long text0 Replies