-
Notifications
You must be signed in to change notification settings - Fork 1k
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
KSP with micronaut 4.2.2: @Client
annotated class not introspected when use also @Generated
annotation
#10277
Comments
@dstepanov hi! Look to this, pls. This is critical bug for micronaut with KSP |
No sure what would cause that, going to check next week |
@dstepanov Hi! You know, this is certainly a strange error, but I was able to figure it out. So, the problem is NOT with the interfaces, but with... the To reproduce it you need to create an interface, for example: @Generated("io.micronaut.openapi.generator.KotlinMicronautClientCodegen")
@Client("openapi-micronaut-client-base-path")
interface PetApi {
/**
* {@summary Add a new pet to the store}
*
* @param body Pet object that needs to be added to the store (optional)
* @return Mono<Void>
*/
@Post("/pet")
fun addPet(
@Body @Nullable @Valid body: Pet?
): Mono<Void>
} We run the build and see this: Next, remove the Generated annotation and run |
@Client
annotated class not introspected when use also @Generated
annotation
Ah right, we have a check that was skipping processing classes with Generated annotations. And I have noticed that it was incorrect and fixed it, now we have this. I guess it needs to be removed |
What is the full name of that |
@dstepanov |
look to the screenshot:
At the top you see what kapt generated: 2 packages -
io.micronaut.openapi.test.api
andio.micronaut.openapi.test.model
Next you see generated sources yt micronaut openapi and introspected class by KSP. As you see, generated 2 packages, but introspected only one -
io.micronaut.openapi.test.model
.That's because introspection lost all interfaces from package
io.micronaut.openapi.test.api
With micronaut
4.2.1
all works fineSample interface which lost:
Version
4.2.2
The text was updated successfully, but these errors were encountered: