Open lazdmx opened 13 years ago
It seams that uniqueItems check is not working for array of objects. For instance env.validate([{"a":1}, {"a": 1}], { uniqueItems : true }) generates no errors.
uniqueItems
env.validate([{"a":1}, {"a": 1}], { uniqueItems : true })
This is a known limitation. I'll look into fixing this in the future.
Have you made any progress on this issue?
For what it's worth, it has the same limitation with array items; [ ['a'], ['a'] ]
It seams that
uniqueItems
check is not working for array of objects. For instanceenv.validate([{"a":1}, {"a": 1}], { uniqueItems : true })
generates no errors.