v2.1.3
New Features
-
All validators from metal-state now accept null/undefined values by default - #140
-
The shapeOf validator can now also receive objects built via
Config
, enabling you to not just use validators, but also the required flag. For example:Config.shapeOf({ myOptionalProp: Config.number(), myRequiredProp: Config.number().required() });