Blog Posts for: Fluentvalidation

Handling validation responses for ASP.NET Core Web API

31 January 2017

I have been working on GeoToast and one of the things I needed to handle was returning a response when model validation fails when calling any of my API endpoints. I am also using Fluent Validation for my model validation which I talked about in my previous post, but that has no bearing on this blog post. This blog post deals with ModelState and FluentValidation ultimately updates the ModelState so whether you are using normal data annotations attribute validation, or Fluent Validation, this will work the same.