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

Closed
rodrigo-rufino opened this issue Apr 23, 2024 · 1 comment
Closed

@Hidden not working at class level #4660

rodrigo-rufino opened this issue Apr 23, 2024 · 1 comment
Assignees

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).

@micryc micryc self-assigned this May 23, 2024
@micryc
Copy link
Contributor

micryc commented May 23, 2024

Hi @rodrigo-rufino are you stil experiencing this issue ? I have tried to reproduce this with swagger-jaxrs2:2.2.20 and it looks like @Hidden annotation works properly, for now I am closing this ticket, if this issue still appears for you, feel free to reopen

@micryc micryc closed this as completed May 23, 2024
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

2 participants