openapi-generator/samples/client/petstore/javascript-promise
delenius c7766457bd Don't set missing optional params in models
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.
2016-02-10 17:18:31 -08:00
..
src Don't set missing optional params in models 2016-02-10 17:18:31 -08:00
test Add petstore tests for usePromises version 2016-02-08 20:02:38 -08:00
.gitignore Add petstore tests for usePromises version 2016-02-08 20:02:38 -08:00
package.json Add petstore tests for usePromises version 2016-02-08 20:02:38 -08:00
pom.xml Add petstore tests for usePromises version 2016-02-08 20:02:38 -08:00