swagger-api / swagger-api/swagger-core
Spring boot native/graalvm jakarta-rs support
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 7.5k
- Forks
- 2.3k
- Avg merge
- 18h 1m
- Merged PRs (30d)
- 10
Description
I tried to integrate swagger with new spring native i.e. v3.2 , when run as native code the /api/openapi.json fails to load with classgraph related error.
Specifically, this is failing for jersey/jakarta-rs based apis
Caused by: java.lang.IllegalArgumentException: Method "list" could not be invoked at nonapi.io.github.classgraph.reflection.ReflectionUtils.invokeMethod(ReflectionUtils.java:230) ~[sb3-service:4.8.164]
Which is probably caused by
com.oracle.svm.core.jdk.UnsupportedFeatureError: JRT file system is disabled
Sample project, it has readme, it depends mysql but that can be removed.
https://github.com/isarang/sb3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the sample project at https://github.com/isarang/sb3 and its README, then reproduce the failing /api/openapi.json request in a Spring Native build. Investigate the ClassGraph reflection error and the disabled JRT file system reported in the stack trace. Done means the OpenAPI endpoint loads for Jersey/Jakarta-RS APIs when running as native code.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100