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

OpenApi ignores @Hidden annotation on subclasses #900

Closed
jamescookie opened this issue Jan 9, 2023 · 1 comment
Closed

OpenApi ignores @Hidden annotation on subclasses #900

jamescookie opened this issue Jan 9, 2023 · 1 comment

Comments

@jamescookie
Copy link

Expected Behavior

@controller classes annotated with @hidden should not have their endpoints exposed in the swagger document even if those endpoints are inherited

Actual Behaviour

Only overridden methods with @hidden are hidden, everything else is exposed

Steps To Reproduce

Create an abstract class with endpoints, subclass that as a controller and annotate with @hidden
Generate openapi document
Endpoints should not be contained in document

Unsure if this is an openapi problem or a micronaut one?

Environment Information

Any

Example Application

https://github.com/jamescookie/OpenApiBug

Version

3.8.0

@altro3
Copy link
Collaborator

altro3 commented Jan 10, 2023

@jamescookie Hi! I fixed this bug. Wait release 4.8.2

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

3 participants