Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Hidden not working at class level #4660

Open
rodrigo-rufino opened this issue Apr 23, 2024 · 0 comments
Open

@Hidden not working at class level #4660

rodrigo-rufino opened this issue Apr 23, 2024 · 0 comments

Comments

@rodrigo-rufino
Copy link

rodrigo-rufino commented Apr 23, 2024

Dependency: io.swagger.core.v3:swagger-jaxrs2:2.0.10

I'm trying to add @Hidden annotation to my class to remove it from the yaml, but it is not working.

If I add it to a field, it is hidden properly. The problem seems to happen at class level.

My class:

@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Hidden
public class SampleDTO {

    private String Name;

}

The same happens for @Schema(hidden = true).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant