I've been reading the docs for Swashbuckle.AspNetCore
and it suggest that you can use DataAnnotation
's to decorate various things to get a richer Swagger API generated. Nice!
But ... we're not using DataAnnotations
. We're using FluentValidation
instead.
So, does the Swashbuckle.AspNetCore
library provide a way to leverage FluentValidation
instead DataAnnotations
?
We would prefer not to repeat any validation logic, twice.