appvision-gmbh / json2typescript

Map JSON to a TypeScript class with secure type checking!
https://www.npmjs.com/package/json2typescript
MIT License
278 stars 55 forks source link

Improve handling of undefined/null values in serialization/deserialization #167

Open andreas-aeschlimann opened 3 years ago

andreas-aeschlimann commented 3 years ago

As of now, handling of null/undefined values are dependent on the property settings (mainly isOptional) and global settings. We should improve the way it handles that.

As discussed in https://github.com/appvision-gmbh/json2typescript/pull/138, we will need to introduce breaking changes for concise usage of null/undefined.