mojotech / json-type-validation

TypeScript JSON type validation
MIT License
155 stars 14 forks source link

Object decoder skips property when the value successfully decodes to undefined #3

Closed mulias closed 6 years ago

mulias commented 6 years ago

A value of undefined means that the object property is optional and not present. Instead of explicitly including the key with a value of undefined, do not add the key at all.