-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
module xxx reads package io.swagger.v3.oas.annotations from both io.swagger.v3.oas.annotations and io.swagger.v3.oas.models #4167
Comments
I ran into the same thing with io.swagger.core.v3:swagger-models:2.2.0. The following classes are in that library: There's no way that I can determine to work around this other than downgrading to an earlier version. |
I think this is occurring because split packages are forbidden and are now present in the project:
Work will need to be done to make sure that there are no split packages.... otherwise the library will not work with Java modules. |
For now, downgrading to 2.1.12 version can solve this bug. |
io.swagger.v3.core.util.AnnotationsUtils.class throws java.lang.NoSuchMethodError: 'io.swagger.v3.oas.annotations.media.Schema$AdditionalPropertiesValue io.swagger.v3.oas.annotations.media.Schema.additionalProperties()' |
…rom swagger-models to swagger-annotations, added dependency on swagger-annotations to swagger-models
…swagger-annotations dependency to swagger-models
I submitted the PR #4195 a couple days ago. Since then I've built and run my project with Springdoc 1.6.9 and Swagger 3 v2.2.1-SNAPSHOT (built and deployed on my private dev server and repo) and Swagger works properly. |
Thanks all for reporting and working on this! It has been indeed a mistake in package use for the introduce model specific annotations. Thanks @rherrick for the PR, we would however keep Any comment welcome, would otherwise merge #4200 and cut a release in the next days |
fixed in #4200 |
Hi. My Project is based on Java 9 with named module. When I upgrade to swagger 2.2.0, I catched
module xxx reads package io.swagger.v3.oas.annotations from both io.swagger.v3.oas.annotations and io.swagger.v3.oas.models
when I compile it . I think it may cased by split package. Is there any way to solve it. Thinks.Here is the demo of this
The text was updated successfully, but these errors were encountered: