CZ-NIC / yangson

GNU Lesser General Public License v3.0
53 stars 20 forks source link

"data-not-unique" errors do not give an error message #104

Closed christian-herber closed 3 years ago

christian-herber commented 3 years ago

When lists have entries that do not satisfy the uniqueness condition, a semantic error is raised, but no message is provided when raising the error. In particular for a list, a non-uniqueness is hard to track down when the list hast potentially 1000s of entries. So here, I think it would be great to at least provide the indeces of list entries which are non-unique.

llhotka commented 3 years ago

The error message now shows the index of the second entry that violates unique.