Open br0r opened 9 years ago
All data that has not been specified in a schema will be removed. This should be moddable. Perhaps .allowAllKeys should fix this.
var data = { test: 'foo', test2: 'bar' }; Duns.objects().keys({ test: Duns.string().returns((val) => val + '!') }).init(data).format() // Removes test2
All data that has not been specified in a schema will be removed. This should be moddable. Perhaps .allowAllKeys should fix this.