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/".
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?