Closed contentfree closed 3 years ago
Yes, it's possible to validate deeply nested hashes.
2 ways:
Interesting ideas, @konung. Thanks for the insight.
Hi @contentfree, Hi @konung this is a feature I will allow in Reform 3 (codename "Transform").
How deeply nested is the data structure @contentfree ?
Consider the following JSON object:
(This structure is useful to ensure unique source identifiers, as opposed to putting objects containing an ID property in an array.)
I'd like to use Reform to validate this such that all values in the
sources
map have atype
property (and have eithera
orb
).How does one accomplish this with Reform?