Skip to content

Commit 3b29c70

Browse files
committed
Remove redundant selector piece
1 parent 9e785f2 commit 3b29c70

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

modules/protocol/resources/META-INF/smithy/smithy4s.meta.smithy

+1-4
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,10 @@ structure packedInputs {}
2727
@idRef(failWhenMissing: true, selector: "union")
2828
string adtMember
2929

30-
// note: technically, the structure test in the selector is redundant
31-
// as it only checks that there exists at least one member that targets a struct.
32-
// Keeping it for now to avoid model merging issues.
3330
/// Implies that all members of the union are annotated with the `adtMember` trait.
3431
/// Further signals that the `sealed trait` for this adt will extend the traits
3532
/// defined by any mixins that are present on all of the adt members.
36-
@trait(selector: ":test(union :test(> member > structure), :not([trait|mixin]))")
33+
@trait(selector: ":test(union, :not([trait|mixin]))")
3734
structure adt {}
3835

3936
// the indexedSeq trait can be added to list shapes in order for the generated collection

0 commit comments

Comments
 (0)