Closed cayuu closed 8 years ago
Recent commit f93d464a enabled an allowNull
model descriptor that disables validation if user provides null
as the value to validate.
The emptyValue
issue is simply not required at this point as the use-case (JSON stripping undefined) fields seems fine. Closing.
Providing a mechanism to treat
null
values as "special" is important..createFrom( scm )
(ie a format method) generates fields withundefined
values where no "default" or "generate" is set - theseundefined
fields are removed entirely when serialised to JSON. Being able to specify anemptyValue
would be handy to ensure empty fields persist post-serialisationnull
as being "ok".