-
Notifications
You must be signed in to change notification settings - Fork 59
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
Allow for multiple overridden types at once #24
Comments
PR #35 introduces the subtype resolution in general – including identified/applicable ones in an
For non-generic subtypes, this should be good to go. |
The above has been released in v4.4.0. |
I experienced a problem trying to implement the |
The reason for the infinite loop is, that the In your given example, you don't change the returned standard definition but rather want to simply include it and by-pass your own Using |
There is already a way to override a given property's type by way of:
SchemaGeneratorConfigPart.withTargetTypeOverrideResolver()
However, that only allows for one-to-one replacements -- e.g. replacing all occurrences of an interface with a single implementation that may contain more/different properties.
But what about those cases, where an interface is implemented by multiple types -- e.g. a
Pet
being either aCat
or aDog
?The generator (and its configuration) should therefore be extended to:
anyOf
(sinceoneOf
would require them to be mutually exclusive).The text was updated successfully, but these errors were encountered: