You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OK. From my point of view there are two ways how can I do this.
The first one is to use existing "defaultValue" option and set default value for all - "undefined", null or empty array.
The second one - create a new options (e.g. - notNull and notEmpty). And if notNull or notEmpty values will be set to TRUE the default value will be use for all null or empty array values.
This library is your baby so which method of implementation do you suggest? ;-)
So currently default values are supported as of v3.0.0, but only when using as the module (see the enhanced fields property). I could see a --default-values value1,value2 option for the CLI which would pass the defaults to the fields in the order defined.
It would be nice if also "null" or "[]" values could be set up to default value. Not only "undefined" values.
The text was updated successfully, but these errors were encountered: