javalin / javalin-openapi

Annotation processor for compile-time OpenAPI & JsonSchema, with out-of-the-box support for Javalin 5.x, Swagger & ReDoc
https://github.com/javalin/javalin-openapi/wiki
Apache License 2.0
45 stars 17 forks source link

Lombok Annotation Conflict #223

Closed RafaelRodriguezSanz closed 2 months ago

RafaelRodriguezSanz commented 2 months ago

Actual behavior (the bug) I am trying to use an annotation of open api: @OpenApis(Docs.MY_OPEN_API) Where Docs is an enum that has a value that corresponds to an @OpenApi. This way I do not need write all the annotation in my controller.

While using this, i am also using lombok to create a constructor injecting dependencied withe guice: @AllArgsConstructor(onConstructor = @__(@Inject))

But when Incompile, javac tell me: error: cannot find symbol. symbol: class __

If I removed OpenApis annotation it works okay!

Expected behavior All annotations works as expected all at once.

To Reproduce Im am using: openapi=5.6.3 javalin=5.6.3 guice=6.0.0 lombok=1.18.28 java=Correto-17.0.5.8.1 gradle=7.3 InteliJ MacOS

Additional context Intried with different versions but problem persist.