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

Add Polymorphism support #144

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

macisamuele
Copy link
Collaborator

Fixes #103

The goal of this PR is to introduce support for polymorphic data models within the generated code.
Details of the feature introduced are properly described in the linked issue (so I'll avoid to repeat myself ;) )

WARNING: This PR is based on top of #104 ... that's why the long list of commits.

This is currently published to give visibility and a reason to some code additions of #104 justified as "check the subsequent branch".

The split of the changes in two PRs was mostly to reduce review complexity.

The base codegen that we're using does not really keep all the properties in
sync, which is not great, but other templates are already applying this type
of fixes.
Trying to create a PR would eventually not be beneficial since we're still
based on swagger-codegen version 2 (while version 3 has been released)
… overridden properties (open and override modifiers)
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

Successfully merging this pull request may close these issues.

Support polymorphism
1 participant