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
Is there a way to disable the functionality in the method OnResultExecuting of ProblemDetailsResultFilter so that the content will not be changed?
We're adding the conventions via AddProblemDetailsConventions but this changes all (existing) behavior. Since we're having existing functionality (an older V1 API) we're looking for a way to bypass the behavior in a dynamic way e.g. when Path (from Context.Request contains "/v1/".
Any thoughts on this one?
The text was updated successfully, but these errors were encountered:
eholman
changed the title
Disable ProblemDetailsResultFilter with condition like UseWhen (middleware) for backwards compatibility
Disable ProblemDetailsResultFilter with condition like UseWhen (middleware) to support backwards compatibility
Aug 15, 2022
Is there a way to disable the functionality in the method
OnResultExecuting
ofProblemDetailsResultFilter
so that the content will not be changed?We're adding the conventions via
AddProblemDetailsConventions
but this changes all (existing) behavior. Since we're having existing functionality (an older V1 API) we're looking for a way to bypass the behavior in a dynamic way e.g. whenPath
(fromContext.Request
contains "/v1/".Any thoughts on this one?
The text was updated successfully, but these errors were encountered: