-
Notifications
You must be signed in to change notification settings - Fork 565
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
4.x - ApplicationPath is not a bean defining annotation #8502
Comments
|
There is an ambiguity with Helidon 4.0.7 when defining a RestApplication class annotated with ApplicationPath. . the ApplicationPath value is taken into account by OpenApi when exposing the API documentation So endpoints exposed by OpenApi (and ui) are not correct. |
We have agreed on making We should also investigate using the Jandex index to detect application classes with no annotations. |
Some background that might be useful... The Helidon OpenAPI implementation layers on the SmallRye OpenAPI library. Helidon's MP OpenAPI code finds out what applications Helidon has discovered (by invoking Helidon's Helidon then asks the SmallRye library to create a separate OpenAPI model for each separate application. Helidon then merges the separate per-application OpenAPI models into a single server-wide model (using a SmallRye utility operation) which gives rise to the single OpenAPI document output at the |
Environment Details
Problem Description
@Path
is a bean defining annotation but@ApplicationPath
is not. When creating a JaxRs application annotated only with@ApplicationPath
but not with@ApplicationScope
it is discarded.This can lead to incorrect behavior:
/
Both
@Path
and@Provider
are declared as bean defining annotations, most likely for convenience.Is it an oversight that
@ApplicationPath
is not included ?Steps to reproduce
The text was updated successfully, but these errors were encountered: