BindNever attribute ignored
jgarciadelanoceda opened this issue · 0 comments
jgarciadelanoceda commented
Hi!
I have an existing API in which I am adding the reference MicroElements.Swashbuckle.FluentValidation.
And I have some properties of a BaseClass hidden in a Dto with the Attribute [BindNever] and those properties were not being populated into Swagger.
When I added the reference those fields of the Dto appeared in the Swagger documentation, so I applied a workaround that is to put the [JsonIgnore] attribute to avoid them to appear.
It would be nice to do not show the properties that have a BindNever attribute on it with the library, without applying the workaround.
If you find this issue interested to solve, I am happy to contribute