An IActionModelConvention filter changes an action model while ASP.NET Core MVC builds the application model. Applied as an attribute, it can refine framework behavior for one action instead of changing every controller. section 6.2.3
Use the pattern to opt one action out of automatic ModelState validation:
- Remove ModelStateInvalidFilter, or match its internal factory by type name, then stop searching. section 6.2.3
Selective manual validation
Keep [ApiController] enabled for the application, but decorate the DomainsController Get action with [ManualValidationFilter]. That action can validate ModelState and construct its own validation response while other actions retain automatic validation. section 6.2.3
