Skip to content

Commit

Permalink
Revert "Revert "Do not suppress on tagged internal enum shape member"" (
Browse files Browse the repository at this point in the history
#807)

This reverts commit cbe3121.
  • Loading branch information
srchase authored Jul 3, 2023
1 parent ae9f3ad commit 488bec2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ private void writeShapeValidator(TypeScriptWriter writer,
}
writer.write("], [");
for (MemberShape member : shape.asEnumShape().get().getAllMembers().values()) {
if (!member.hasTrait((InternalTrait.class)) && !member.hasTag("internal")) {
if (!member.hasTrait((InternalTrait.class))) {
writer.write("$S,", member.expectTrait(EnumValueTrait.class).expectStringValue());
}
}
Expand Down

0 comments on commit 488bec2

Please sign in to comment.