-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[swagger-codegen 3.0.0] Server Stub support #7776
Comments
There was a small continuous integration build problem yesterday, see swagger-api/swagger-codegen-generators#31 (see stacktrace there). Can you verify the precise The continuous build is now OK: https://travis-ci.org/swagger-api/swagger-codegen If you are interested by JaxRS backends in the |
Thank you, I will take the new version for building and check for the inflector. Is there support for server stub generation in this release ? |
I am not using The With the |
@jmini I am facing the below problem, can you please look into it.
[INFO] Reactor Summary:
[ERROR] COMPILATION ERROR : |
I can not follow. With a checkout of branch
The different CI Builds are also OK for this branch. If you just want to use the latest version, you do not need to build it locally... Are you using a maven plugin or the cli? Just fetch the latest version from maven central (https://oss.sonatype.org/content/repositories/snapshots/) and it should work. |
hey @GovardhanYakula, can you try again? the build failure was already fixed |
Thanks @jmini and @HugoMario . I am able to build swagger-codegen 3.0.0 and generate server stub for inflector successfully. But I am facing following compilation error while running the server. [ERROR] COMPILATION ERROR : Do you have any clue on this ? |
@GovardhanYakula |
@HugoMario |
@HugoMario has started to work on swagger-api/swagger-codegen-generators#27 I agree that we can keep this issue to discuss it. |
@GovardhanYakula
then on generated project i run:
everything worked pretty well:
So, when you have a chance, can you please try again and see if it works for you? for now i'm going to close this issue and it can be opened if something wrong is found. I used the latest 3.0.0-SNAPHOT btw. |
Description
I have tried to generate server stub for OpenAPI 3.0 spec based .yaml using swagger-codegen 3.0.0 and used java/inflector languages (as it supports only java & inflector). In case of java, this generated files for client API library not for the server stub. In case of inflector, this causes exception. I would like to know whether server stub support is there or not in this release.
Swagger-codegen version
3.0.0-SNAPSHOT
Swagger declaration file content or url
https://github.com/OAI/OpenAPI-Specification/blob/master/examples/v3.0/petstore.yaml
Command line used for generation
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i petstore.yaml -l java
Steps to reproduce
NA
Related issues/PRs
NA
Suggest a fix/enhancement
NA
The text was updated successfully, but these errors were encountered: