Skip to content

Runtime OpenAPI filters are not registered for reflection #37357

@tms0

Description

@tms0

Describe the bug

When adding an OpenAPI filter, it is not registered for reflection by the SmallRyeOpenApiProcessor, that causes the openapi endpoint to crash with a java.lang.ClassNotFoundException when running as a native executable.

It works fine when annotating the filter explicitly with a @RegisterForReflection annotation.

Expected behavior

When registering the runtime filters (https://github.com/quarkusio/quarkus/blob/main/extensions/smallrye-openapi/deployment/src/main/java/io/quarkus/smallrye/openapi/deployment/SmallRyeOpenApiProcessor.java#L246), the extension should register them for reflection.

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions