Technically 'createFrom' is a special case of format, with the only difference from default behaviour being that it initialises every key on the schema to undefined and then applies defaults + transforms.
If there was a {stubAllFields: true} (or similar) flag for format, then an entire API call could be removed.
Very strongly leaning to :+1: this proposal. Having an "extra" method on the API is inconsistent. The question simply becomes, "what's the best way to flag createFrom on the format()?"
Technically 'createFrom' is a special case of format, with the only difference from default behaviour being that it initialises every key on the schema to
undefined
and then applies defaults + transforms.If there was a
{stubAllFields: true}
(or similar) flag for format, then an entire API call could be removed.*under consideration