overture-stack / js-lectern-client

JS client for lectern dictionary service
https://overture-stack.github.io/js-lectern-client/
GNU Affero General Public License v3.0
0 stars 0 forks source link

Feature Request - uniqueKey validation #34

Closed joneubank closed 1 year ago

joneubank commented 1 year ago

Lectern is adding the schema level restriction called uniqueKey which will enforce a collection of properties to be like a composite key, such that the collection of them must have a unique value for each record in the submitted data.

https://github.com/overture-stack/lectern/issues/176

We need to create a validator for this restriction and add it to the newly added validateRecordsSet pipeline.

joneubank commented 1 year ago

Hopefully the details in the linked ticket describe the rules for the validation. If there is any confusion let us know and we can write out the validation rules.