Skip to content

Commit

Permalink
Revert "Do not suppress on tagged internal enum shape member"
Browse files Browse the repository at this point in the history
This reverts commit 4f16c8b.
  • Loading branch information
srchase committed May 12, 2023
1 parent e4b5c8f commit cbe3121
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ private void writeShapeValidator(TypeScriptWriter writer,
}
writer.write("], [");
for (MemberShape member : shape.asEnumShape().get().getAllMembers().values()) {
if (!member.hasTrait((InternalTrait.class))) {
if (!member.hasTrait((InternalTrait.class)) && !member.hasTag("internal")) {
writer.write("$S,", member.expectTrait(EnumValueTrait.class).expectStringValue());
}
}
Expand Down

0 comments on commit cbe3121

Please sign in to comment.