I have to modify auto validation response that [ApiController]
generates but only for some endpoints, so I can't change ApiBehaviorOptions
. I tried using IActionFilter
, but the auto validation is done before action filter and I can't modify it this way.
How can I modify auto validation response for some actions only?