-
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
3.0.0 server-code generation always failing due to missing /<backend>/model.mustache #7622
Comments
Hey @asnowfix sorry for delay response. Right now We can keep this issue open till |
Is there a description of the necessary steps to convert a Swagger 2.0 generator to an OpenAPI 3.0 generator? Even a raw TODO list with the main steps would be sufficient to start. We would also like to have a |
@jmini no really, i mean there is not a formal document about it, but right now the steps are:
Anyway, on next days i'll work on a wiki to describe these steps with more details. |
@asnowfix:
I am (mis)using this issue to discuss how we can move forward for the Thank you a lot for those pointers. In order to create the templates, for the moment I have just copied the one from I did some modifications (some small syntax changes, analog the one you have made in the Blank spaces in the generated codeFor the moment I did not investigate the blank spaces issue. I should add some ResultI have pushed the result to this branch on my fork: I am now capable to generate the NOTE: there is no integration with the CLI or the Maven plugin yet. To start the generator you can use something like this:
NOTE: the result still works with Swagger 2 at runtime! The generated code has a dependency on I think this is great as first step! @asnowfix: Redundancy in the templates?@HugoMario: Have you a strategy for this? Moving to swagger v3 for jaxrs at runtime?@HugoMario: This is probably to early. What is the vision here? Pull Request for
|
In my opinion this |
I have found this discussion: #4937 and I propose to continue it there. |
I have started something: |
sounds good, thanks. I'll take a look on it and help. |
I have continued to work on my The result is a pull request for the It provides a first version for following languages:
Feedback is appreciated. |
I think that the languages that are not available should not appear in the list. I have proposed pull request #7749 to remove them. |
The I guess that this issue can be closed. |
Description
I am trying to generate server-side code out of a open api 3.0 specification. I tried the 2 backends that seems to be available in 3.0.0-rc0 (jaxrs & nodejs-server), with the same output error pattern: a missing Mustache.io file.
Swagger-codegen version
I am using 3.0.0-rc0 downloaded using wget. This is not a regression, as far as I can tell.
Swagger declaration file content or url
https://github.com/openservicebrokerapi/servicebroker/blob/master/openapi.yaml
Command line used for generation
Steps to reproduce
Related issues/PRs
Related issue might be completion of the support of OpenAPI 3.0 support in #6598
Suggest a fix/enhancement
The text was updated successfully, but these errors were encountered: