metal / metal.js

Build UI components in a solid, flexible way
http://metaljs.com
Other
229 stars 59 forks source link

Config does not validate required nested attributes #406

Closed p2kmgcl closed 1 year ago

p2kmgcl commented 5 years ago

When using Config.arrayOf(...) and Config.shapeOf(...) it does not check nested attributes inside them, for example, for this rule:

Config.arrayOf(
    Config.shapeOf({
        a: Config.string().required()
    })
)

Metal say's these are valid:

But also this, which shouldn't be:

How ever, it does throw an error for: