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

Springdoc 2.8.x + Spring Boot 3.4.1 breaks native image support #2870

Open
goafabric opened this issue Jan 21, 2025 · 0 comments
Open

Springdoc 2.8.x + Spring Boot 3.4.1 breaks native image support #2870

goafabric opened this issue Jan 21, 2025 · 0 comments

Comments

@goafabric
Copy link

goafabric commented Jan 21, 2025

Latest Spring Doc + Spring Boot 3.4.1 breaks the native image support.
Accessing OpenAPI will bail out with an error 400.

The following Reflection hints can at least get OpenAPI working Again:

@RegisterReflection(classes = {io.swagger.v3.core.jackson.mixin.Schema31Mixin.TypeSerializer.class, io.swagger.v3.oas.models.media.JsonSchema.class, com.fasterxml.jackson.databind.BeanDescription.class}, memberCategories = {MemberCategory.INVOKE_DECLARED_CONSTRUCTORS, MemberCategory.INVOKE_PUBLIC_METHODS})

=>

I kindly ask to add them, as the latest org.graalvm.buildtools.native:0.10.4 does not seem to contain the reachability metadata.
It can also be done in other ways, as long as the classes above are registered for Reflection.

Thx in advance

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

1 participant