Open jasonculverhouse opened 5 years ago
👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
@jasonculverhouse can you please submit a PR with the suggested fix?
Hej everyone,
we are working on the 4.3.1 release of the OpenAPIGenerator. Today we encountered the very same problem that the TO described and fixed. It seems like the changes didn't make into the release of OpenAPIGenerator.
Does anyone have an idea if and in which release the described bug will be fixed?
Cheers + Best regards, André
@wing328 @TheOneAndOnlyAndreKempe I made this pull request https://github.com/OpenAPITools/openapi-generator/pull/7956. Where I just sync the hashcode and equals with the JavaSpring project.
I don't think that the java code has been regenerated for the inflector project since ~3.x
I haven't succeeded in getting the code to run correctly...
Bug Report Checklist
Description
JavaInflector/pojo.mustache does not generate proper hashCode and equals functions
openapi-generator version
latest
OpenAPI declaration file content or url
https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/test/resources/3_0/allOf.yaml
Command line used for generation
Steps to reproduce
in the Generated Classes you can see that the super class is not considered in equals or hash code
After the patch below
Related issues/PRs
Suggest a fix