I want to completely disable model validation for WebAPI controllers. I tried a few ways to do it for MVC, but seems WebAPI doesn't get that methods.
In my case:
I'm trying to completely remove step 2.
Try this:
config.Services.Clear(typeof(ModelValidatorProvider));
It should completely disable validation both for URI parameters and for body parameters.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With