You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The deserialization logic constructs an empty PropertyOption (using the default constructor which initializes isNullable to true) and then calls setActualInstance. So options I can see is either change isNullable in setActualnstance or change deserialization logic to use the constructor that takes the instance as an argument.
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
Description
When using a nullable oneOf property, deserialization does not preserve the isNullable flag.
openapi-generator version
All versions since 7.5.0.
7.4.0 works correctly.
OpenAPI declaration file content or url
Generation Details
I'm Using gradle plugin:
Steps to reproduce
Generate Java models and perform a JSON round-trip of the DTO:
Related issues/PRs
Suggest a fix
The deserialization logic constructs an empty PropertyOption (using the default constructor which initializes
isNullable
to true) and then callssetActualInstance
. So options I can see is either changeisNullable
insetActualnstance
or change deserialization logic to use the constructor that takes the instance as an argument.The text was updated successfully, but these errors were encountered: