Last active
August 24, 2024 14:21
-
-
Save msx752/64129c819d6015883a60c7905691de63 to your computer and use it in GitHub Desktop.
Example code to suppress ModelStateInvalidFilter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example code to suppress ModelStateInvalidFilter | |
services.Configure<ApiBehaviorOptions>(options => | |
{ | |
options.SuppressModelStateInvalidFilter = true; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment