Skip to content

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

Closed
@goafabric

Description

@goafabric

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions