-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[codegen] Fix 'super.HashCode' for oneOf and allOf Implementations #5824
Conversation
* minor improvements to scala akka server * add samples * update doc
@wing328 I am hoping you can provide a recommendation. This PR consists of a one line change to the |
* update swagger parser to 2.0.18 * fix online server exception * Revert "fix online server exception" This reverts commit fe3cb52. * update parser to 2.0.19
When generating model that use allOf, the equals and hashCode methods must take the parent class into account.
@jburgess please revert the changes related to run-all-petstore script as it should be run by the CIs only. Please run |
Looks like you're including commits not authored by you in this PR (due to rebase?) I would suggest you file a new PR from the latest master instead. |
This fixes various client and server generators which use
allOf
anddiscriminator
patterns as identified in #5587This error occurs as the
hasVars
boolean is not set for models which contain extension patterns. This fix simply sets the boolean at the end of code generation bases on the existence of variables after post-processing these special object types.PR checklist
./bin/
(or Windows batch scripts under.\bin\windows
) to update Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit, and these must match the expectations made by your contribution. You only need to run./bin/{LANG}-petstore.sh
,./bin/openapi3/{LANG}-petstore.sh
if updating the code or mustache templates for a language ({LANG}
) (e.g. php, ruby, python, etc).master
,4.3.x
,5.0.x
. Default:master
.@bbdouglas @sreeshas @jfiala @lukoyanov @cbornet @jeff9finger @karismann @Zomzog @lwlee2608 @bkabrda