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()); } }