I'm building a .net core 6 web API server. I tried using Fluent Validation but I'm getting a warning that Calling addfluentvalidation() is deprecated.
Besides the warning, I was happy with the final result (an example of a 400 response)
So I tried looking for a better solution for using Fluent Validation without a deprecation warning.
I found this solution:
Which works but I'm now not satisfied with the response (The errors column now is missing)
Does anyone know why I'm not getting the errors column anymore? I have tried looking it online but no luck whatsoever.
You can add the following for auto validation.
services.AddFluentValidationAutoValidation();