serby / schemata

Define, create, and validate your business objects based on specified schema.
45 stars 16 forks source link

stripUnknownProperties: All null values in an entityObject should be returned. #38

Closed serby closed 8 years ago

serby commented 8 years ago

Currently null Arrays and possibly Objects are striped out, however wrongly typed scalar types are not strip.

This function should look to cast object, it is only concerned with striping unknown properties.

https://github.com/serby/schemata/blob/master/schemata.js#L189

serby commented 8 years ago

This is fixed in 25764c0f090db296a5f00f29fdfd5fec3421470d