-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[spring] equals and hashCode for models with array type [] #1448
Comments
Do you mean using |
Yes.
Also use the |
Thanks for the clarification. Do you mind filing a PR by copying the fix from |
I am not allowed to open a new branch, but in fact it will be the same change as https://github.com/swagger-api/swagger-codegen/pull/7341/files/450e72180522c0ad09ae6e28e277dabc348cae78 |
@canaz to contribute, please fork this repo to start with. I'm reachable via https://gitter.im if you need help on that. |
Description
equals() and hashCode() are not generated correctly for generatorName spring and library spring-boot.
It uses Objects.equals() to compare primitive arrays.
The same model generated with generatorName java and library resttemplate uses Arrays.equals(), which ist correct.
openapi-generator version
3.3.2
OpenAPI declaration file content or url
Command line used for generation
Used pom.xml:
Steps to reproduce
Create project with given pom file and put swagger.yaml to src/main/resources
The text was updated successfully, but these errors were encountered: