This PR adds an Inspector.mapNull() extension function that works like Store.mapNull().
Just like on a Store, a default value is passed to the method that is used by the resulting store when the parent's value is null.
Additionally, the behavior of Store.mapNull() has been changed so that the path of the derived Store is the same as in the parent Store. This is the correct behavior as a Store created via mapNull() does not technically map to another hierarchical level of the data model. As a result, mapNull() works the same on both Stores and Inspectors, making the validation process more straight-forward. Previously, the Store's id has been appended to the path upon derivation.
This PR might potentially be API breaking as the behavior of Store.mapNull() regarding the resulting path changes.
This PR adds an
Inspector.mapNull()
extension function that works likeStore.mapNull()
. Just like on a Store, a default value is passed to the method that is used by the resulting store when the parent's value isnull
.Additionally, the behavior of
Store.mapNull()
has been changed so that the path of the derived Store is the same as in the parent Store. This is the correct behavior as a Store created viamapNull()
does not technically map to another hierarchical level of the data model. As a result,mapNull()
works the same on both Stores and Inspectors, making the validation process more straight-forward. Previously, the Store's id has been appended to the path upon derivation.This PR might potentially be API breaking as the behavior of
Store.mapNull()
regarding the resulting path changes.Closes #769