Created by: the-akhil-nair
The commit https://github.com/aeneasr/openapi-generator/commit/0c5e5aeccc9fa2ef392c8fd0a3dd0b219665ec5d in the PR : https://github.com/OpenAPITools/openapi-generator/pull/8491 resolves the pointer issue, missed the logic to perform similar operation in case of Unmarshalling of the JSON.
Due to this, there is a mismatch between the data type(This issue is seen for array of object type property) between Dog type and DogWithoutEmbeddedStruct type(Present inside Unmarshalling method).
Applying the same logic mentioned in the above commit in UnmarshalJSON method.
PR checklist
-
Read the contribution guidelines. -
Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community. -
Run the following to build the project and update samples: ./mvnw clean package ./bin/generate-samples.sh ./bin/utils/export_docs_generators.sh
./bin/generate-samples.sh bin/configs/java*
. For Windows users, please run the script in Git BASH. -
File the PR against the correct branch: master
(5.3.0),6.0.x
-
If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request. @antihax (2017/11) @grokify (2018/07) @kemokemo (2018/09) @jirikuncar (2021/01) @ph4r5h4d (2021/04)