From 488bec22cb149fd51ac60f299a2599c75f9854e4 Mon Sep 17 00:00:00 2001 From: Chase Coalwell <782571+srchase@users.noreply.github.com> Date: Mon, 3 Jul 2023 16:28:28 -0600 Subject: [PATCH] Revert "Revert "Do not suppress on tagged internal enum shape member"" (#807) This reverts commit cbe312126a55bc993d96640a7a33feb734fbc930. --- .../smithy/typescript/codegen/StructuredMemberWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/StructuredMemberWriter.java b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/StructuredMemberWriter.java index 63d5952c0cc..34aac314246 100644 --- a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/StructuredMemberWriter.java +++ b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/StructuredMemberWriter.java @@ -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()); } }