I have fluent validation integrated which is working fine for POST requests model validation
But what is the best approach to attach validator to GET requests?
public async Task<IActionResult> GetV2Async(Constants.Status status, int? cafeId)
My current validators for my POST requests look like this:
public CafeAddressRequestValidator()
{
RuleFor(x => x.Name).NotEmpty().WithMessage("Name is required");
RuleFor(x => x.AddressLine1).NotEmpty().WithMessage("AddressLine1 is required");
}


Constants.Status?The fluent validation could work well with get request.Please share more code about how did you configure fluent validation and what is the version of your asp.net core?