-
Bug
-
Resolution: Not a Bug
-
Major
-
None
-
34.0.0.Final, 36.0.0.Final
-
None
-
-
Workaround Exists
-
-
---
-
---
smallrye scanner cannot find REST API POJOs to generate the OpenAPI schema at deploy, if those POJOs are in a Wildfly module jar.
WARN Thread-22 [io.smallrye.openapi.runtime.scanner.OpenApiDataObjectScanner] [process] SROAP04005: Could not find schema class in index: com.myapp.MyPojoClass
I have rest.war inside a main.ear, and in a Wildfly module jar I have the POJOs.
Was able to make smallrye generate the schema by adding the jar containing the POJOs in the WAR file that contains my REST API.
Given the fact that my REST API works without adding the jar containing the POJOs in the WAR, seams to be some sorts of visibility issue when it comes to smallrye.
Opened an [issue|https://github.com/smallrye/smallrye-open-api/issues/2258] on smallrye and it was suggested that this might be a Wildfly issue.