Skip to content

Commit

Permalink
Revert "Make uniqueItems trait selector match set shapes"
Browse files Browse the repository at this point in the history
This reverts commit 937574b.
  • Loading branch information
adamthom-amzn committed Mar 10, 2022
1 parent a89ed09 commit 21df1ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions docs/source/1.0/spec/core/constraint-traits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -606,13 +606,15 @@ in a response.

.. warning:
This trait has been deprecated and will be removed in future versions of
Smithy. Set shapes should be used instead.
This trait has been deprecated. It may be removed in future versions. Set
shapes should be used instead.
Summary
Indicates that the items in a :ref:`list` MUST be unique.
Trait selector
``:test(list > member > :test(string, blob, byte, short, integer, long, bigDecimal, bigInteger))``
``:test(list > member > simpleType)``

*A list that targets any simple type.*
Value type
Annotation trait.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ structure recommended {
structure sparse {}

/// Indicates that the items in a list MUST be unique.
@trait(selector: ":test(list > member > :test(string, blob, byte, short, integer, long, bigDecimal, bigInteger))")
@trait(selector: "list")
@deprecated(message: "The uniqueItems trait has been deprecated in favor of using sets.", since: "2.0")
structure uniqueItems {}

Expand Down

0 comments on commit 21df1ac

Please sign in to comment.