From cbe312126a55bc993d96640a7a33feb734fbc930 Mon Sep 17 00:00:00 2001 From: Chase Coalwell <782571+srchase@users.noreply.github.com> Date: Fri, 12 May 2023 12:59:33 -0600 Subject: [PATCH] Revert "Do not suppress on tagged internal enum shape member" This reverts commit 4f16c8bba722d61635b0ce51acb84be8728376ac. --- .../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 7832af7b536..c336e7c0f1e 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 @@ -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()); } }