Summary
Add a new field-level restriction that enforces all elements within an array field are unique (no duplicates within a single record's array value).
This is a design change issue. Introducing a new restriction requires design decisions before implementation can begin.
Motivation
Currently there is no way to declare that array elements must be distinct. For example, a field with isArray: true can silently accept ["A", "A", "B"] with no validation error.
Scope
This issue covers the design and documentation of the new restriction, including:
- How the restriction is declared in a field definition
- How validation is performed when the restriction is present
- How validation errors are reported
Related
Originally raised in #457.
Summary
Add a new field-level restriction that enforces all elements within an array field are unique (no duplicates within a single record's array value).
This is a design change issue. Introducing a new restriction requires design decisions before implementation can begin.
Motivation
Currently there is no way to declare that array elements must be distinct. For example, a field with
isArray: truecan silently accept["A", "A", "B"]with no validation error.Scope
This issue covers the design and documentation of the new restriction, including:
Related
Originally raised in #457.