Skip to content

BindNever attribute ignored #135

@jgarciadelanoceda

Description

@jgarciadelanoceda

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions