Skip to content
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

V3 fails to create concrete implementations of "Any-Interface" in Java #12520

Open
burkolter opened this issue Feb 6, 2025 · 1 comment
Open

Comments

@burkolter
Copy link

I try to auto-create a client for https://swagger.octobrowser.net/?urls.primaryName=Server+Auto+API. The generator fails to create the following correctly:

Image

An interface class gets created

Image

However, no concrete implementation of those classes are created. As a consequence, also invalid JAVA-classes are generated with missing default value (This should be an empty string).

Image

@burkolter
Copy link
Author

burkolter commented Feb 6, 2025

My config

<plugin> <groupId>io.swagger.codegen.v3</groupId> <artifactId>swagger-codegen-maven-plugin</artifactId> <version>3.0.65</version> <executions> <execution> <goals> <goal>generate</goal> </goals> <configuration> <inputSpec>${project.basedir}/src/main/resources/OctoBrowserSwaggerApi.yml</inputSpec> <language>java</language> <library>resttemplate</library> <configOptions> <modelPackage>primemover.octobrowser.swagger.model</modelPackage> <apiPackage>primemover.octobrowser.swagger.api</apiPackage> <sourceFolder>src/gen/java/main</sourceFolder> <generateApiTests>false</generateApiTests> <invokerPackage>primemover.octobrowser.swagger.invoker</invokerPackage> </configOptions> </configuration> </execution> </executions> </plugin>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant