garycourt / JSV

A JavaScript implementation of an extendable, fully compliant JSON Schema validator.
618 stars 84 forks source link

UniqueItems check error #25

Open lazdmx opened 13 years ago

lazdmx commented 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.

garycourt commented 13 years ago

This is a known limitation. I'll look into fixing this in the future.

ferson2020 commented 11 years ago

Have you made any progress on this issue?

MrTrick commented 10 years ago

For what it's worth, it has the same limitation with array items; [ ['a'], ['a'] ]