Skip to content

Instantly share code, notes, and snippets.

@mirsaeedi
Created January 19, 2021 01:20
Show Gist options
  • Save mirsaeedi/32de835956585de28172cf3d6b907985 to your computer and use it in GitHub Desktop.
Save mirsaeedi/32de835956585de28172cf3d6b907985 to your computer and use it in GitHub Desktop.
ASP.NET Core Suppress Default Validation Message
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