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

Generated JAX-RS resources from data.panache.PanacheEntityResource do not honor openapi annotations #40010

Open
rsvoboda opened this issue Apr 11, 2024 · 1 comment
Labels

Comments

@rsvoboda
Copy link
Member

Describe the bug

Generated JAX-RS resources from data.panache.PanacheEntityResource do not honor openapi annotations

I have put @Operation(hidden=true) on method in PeopleResource that extends PanacheEntityResource (https://github.com/quarkusio/quarkus-quickstarts/blob/main/hibernate-orm-rest-data-panache-quickstart/src/main/java/org/acme/hibernate/orm/panache/rest/entity/PeopleResource.java)

But the /my-people/all endpoint is still visible in http://localhost:8080/q/openapi?format=json

Using @MethodProperties(exposed = false) is not working for me as I want to have the endpoint available but just not listed in openapi contract.

Expected behavior

Generated endpoint is not visible in http://localhost:8080/q/openapi?format=json

Actual behavior

Generated endpoint is still visible in http://localhost:8080/q/openapi?format=json

How to Reproduce?

Output of uname -a or ver

macOS

Output of java -version

Java 17

Quarkus version or git rev

Quuarkus main

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@quarkus-bot
Copy link

quarkus-bot bot commented Apr 11, 2024

/cc @EricWittmann (openapi), @FroMage (panache), @MikeEdgar (openapi), @geoand (rest-data-panache), @loicmathieu (panache), @phillip-kruger (openapi)

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

No branches or pull requests

1 participant