mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 03:18:53 +00:00
c7766457bd
Fixes #2103. In the constructFromObject methods, we were always setting all the parameters, including optional ones that were missing in the `data` object. Because of the `convertToType` calls, this had the effect of producing the *strings* `"undefined"` or `"null"` as property values on the constructed object! This obviously leads to difficult bugs. This commit makes sure that we first check that the data field exists in the data object. Note that both `null` and `undefined` values will be skipped. |
||
---|---|---|
.. | ||
src | ||
test | ||
.gitignore | ||
package.json | ||
pom.xml |