-
Notifications
You must be signed in to change notification settings - Fork 6k
Java support inheritance #1094
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
Java support inheritance #1094
Conversation
…dme-path-fix Fix path in instructions for making your own codegen modules
@ahgittin do you mind sharing the spec with us assuming it can be shared publicly? |
@wing328 here's a cut-down test case whose
|
e7bf725
to
7c90403
Compare
also noticed this had some strange commits; i've rebased so it's just the one-line change |
FWIW, that's not inheritance, that's composition. In this case, |
sorry @webron i mis-typed the example, it's now correct, and it definitely is implemented as inheritance (maybe it shouldn't be):
redeclaring the enum breaks compilation as HTH |
Not sure what's changed, but as long as there's no |
If we look at the Java client in the "master" branch, we'll find that it implements @xhh previously attempt to fix @tandrup introduced Before someone from the community implements |
I'd suggest putting a hold on the |
as per swagger-api#1015 (and swagger-api#946) this is now optional and disabled by default. this results in extra unnecessary code, masking fields in some cases, and breaks code generated for jax-rs in certain cases (enums with inheritance).
7c90403
to
813d519
Compare
closing and will resubmit against master as per change to swagger PR process |
closed in favour of #1120 |
@webron are you referring to OAI/OpenAPI-Specification#403? |
That is correct. It should be resolved soon. |
as per #1015 (and #946) this is now optional and disabled by default. this results in extra unnecessary code, masking fields in some cases, and breaks code generated for jax-rs in certain cases (enums with inheritance).
as noted by @xhh at #1050 this is not a perfect fix, but it improves the situation significantly (restoring
master
branch behaviour, as the current situation is a regression; my spec builds fine with master but not withdevelop_2.0
?).