Add ability to constrain elements to have distinct nested values. #129
Labels
enhancement
New feature or enhancement for the Ion Schema _specification_
requires new version
Something that should be considered for next version of the Ion Schema Specification
Problem
Sometimes a list of elements need to be distinct by a specific nested value. For example, we might want to ensure that list of customers have different customer IDs.
Using the ISL 2.0
element: distinct::customer
, the best we can do is ensure that no two customers have the ID and the same name.Proposal
This is an admittedly incomplete straw-man proposal, intended to start further discussion about the topic.
Sharp edges
This is not necessarily a complete list.
foo
for variant 1, but fieldbar
in variant 2?The text was updated successfully, but these errors were encountered: