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