Closed iwinux closed 7 years ago
Would be possible to define a default data object containing null for every key and then merging it with the provided data?
const default = {id: null, name: null}
const providedData = {id: 1}
const data = merge(default, providedData)
That looks good. Thanks!
Hi,
As specified in the unit test, validations of missing field are simply skipped - how should I ensure that every required fields are filled?
Thanks :)