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

Generation does not work with splitted files #23

Open
jbellmann opened this issue Dec 8, 2015 · 9 comments
Open

Generation does not work with splitted files #23

jbellmann opened this issue Dec 8, 2015 · 9 comments

Comments

@jbellmann
Copy link
Contributor

Have a look on #21 last comment.

@XtreZz
Copy link

XtreZz commented Dec 11, 2015

any news on this ? i also have this problem

@jbellmann
Copy link
Contributor Author

Not yet. Had no time to look into it the last 3 days. Sorry.

But could you provide a simple 2 file example swagger-definition please. That could improve speed when resolving this issue ;-)

@stephenlynch
Copy link

Hi,

I am also having this issue. The generation is working but not for collections with generics:

"fooList": {
        "type": "object",
        "additionalProperties": {
          "type": "string"
        }
      },

Should look like this:

private Map<String, String> fooList;

but generates this:

private String fooList;

@jbadeau
Copy link

jbadeau commented Feb 9, 2016

Any idea if this will be fixed.

@jbellmann
Copy link
Contributor Author

Hi, I had a look into the code-generator documentation and did not found any hint that it is possible to use more than one spec-file (it's the -i parameter, right?). So we only could build a custom file-merge and present that to the code-generator.

Do you have more information about using multiple spec-files for the code-generator?

@jbadeau
Copy link

jbadeau commented Feb 26, 2016

In swagger specs you have the option to reference external elements like:

$ref: '../common/Definitions.yaml#/Error'

@jbellmann
Copy link
Contributor Author

Yes I read that also somewhere in the net, and also that the 'swagger-editor' supports that. But the 'code-generator' only supports one, right? And we only delegate to that generator. I will try it.

@jbadeau
Copy link

jbadeau commented May 13, 2016

The swagger generator supports it. Yes, I think you need only delegate.

@gitLinda
Copy link

I'm also interested on this fix

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

5 participants