Skip to content

Support for 'allOf' in swagger-codegen ? #632

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

Closed
jreece1567 opened this issue Apr 14, 2015 · 1 comment
Closed

Support for 'allOf' in swagger-codegen ? #632

jreece1567 opened this issue Apr 14, 2015 · 1 comment

Comments

@jreece1567
Copy link

Would like to be able to generate models (Java) that can use composition ('extends' in Java) ...
https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#models-with-composition

Specific use-case is models that can be used (cleanly) for both 'create' and 'update' activities.
For 'create' activities, the DB-key for the model is not yet known.
For 'update' activities, the DB-key is required.
Would like to use the same model for the non-key attributes of the model.

@jreece1567
Copy link
Author

Already in the pipleline, #358.

bdaroz added a commit to bdaroz/the-blue-alliance that referenced this issue Feb 26, 2017
This affects at least C#, Java, and perhaps others.

Removed `allOf` references in spec and duplicated the `...Simple` elements into the full model.

See swagger-api/swagger-codegen#632 and swagger-api/swagger-codegen#358
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