Closed balaclark closed 8 years ago
Can you create a test with sole intent and description of this bug.
should not create default values on subschemas when value is null
The test I added does that, I've renamed it to make it more clear and added one more for undefined values.
closing this in favour of https://github.com/serby/schemata/pull/31
This is causing validation errors when I try to save an object with non-required sub-schema property set to
null
.This also brings sub-schema
makeDefault()
into line with how sub-schemacast()
works (see https://github.com/serby/schemata/commit/caed73086f2abe6c9bed279c4ae2feba5a6db575).