You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @khellang
Thank you for your work. I really enjoy using this library.
There's one scenario I'd really love if the library could support: is to allow defining custom action result mappers that will be executed from ProblemDetailsResultFilter to turn object result into ProblemDetails during OnResultExecuting execution.
What I'm currently trying to achieve is to return my own Error types with problem action results (as I want to avoid using exception flow where possible) and turn them into ProblemDetails when action result is executed, e.g.
Hi @khellang
Thank you for your work. I really enjoy using this library.
There's one scenario I'd really love if the library could support: is to allow defining custom action result mappers that will be executed from
ProblemDetailsResultFilter
to turn object result intoProblemDetails
duringOnResultExecuting
execution.What I'm currently trying to achieve is to return my own
Error
types withproblem
action results (as I want to avoid usingexception
flow where possible) and turn them intoProblemDetails
when action result is executed, e.g.To achieve that I have to
ProblemDetails
traceId
population logic as I cannot callCallBeforeWriteHook
as it currently hasinternal
accessTo make the library support this scenario:
ProblemDetailsOptions
to registerResult
mappersProblemDetailsResultFilter
to go through registered mappers and execute it if found just like it is currently done for exception mapping, e.g.The text was updated successfully, but these errors were encountered: