-
Notifications
You must be signed in to change notification settings - Fork 6k
[C#] Not all referenced models are generated #4285
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
Comments
@mpazdnikova as a workaround, you can define the enum directly in the property itself. I would also suggest you to try the latest master, which should support enum as a standalone class. |
(If your company is using Swagger Codegen, please consider adding your company name to this list) |
@wing328 @mpazdnikova when you say |
Do web interface support it? |
@aleksei-saharov you may want to build the JAR based on the latest master as there's a new version of swagger parser, which should have addressed the issue you reported. |
@wing328, we're not interested in building latest master and we won't do it. Our company has Enterprise Swagger Hub subscription and it's crucial for us to have stable Swagger Web client as our business depends on it. |
We plan to release 2.2.2 release this month (Feb 2017) and then generator.swagger.io (used by editor.swagger.io) will be updated to use 2.2.2 for code generation. |
Hi.
I'm using swaggerhub and have difficulties with correct client code generation for C#. When I reference some model from my domain, it is generated fine, but if this model have references to definitions from that domain, that are not referenced in spec, they are not generated in client code.
For example in my spec I have:
And in domain:
Then in C# code there is mention of
SomeEnum
inInnerModel
class, but theSomeEnum
class itself is missing.I am not sure if that's a bug or some mistake from my side, but it would be nice if these transitive models were properly generated.
The text was updated successfully, but these errors were encountered: