diff --git a/codegen/codegen-plugin/src/main/java/software/amazon/smithy/java/codegen/DirectedJavaCodegen.java b/codegen/codegen-plugin/src/main/java/software/amazon/smithy/java/codegen/DirectedJavaCodegen.java index fbb4f7f67..bf5900fd5 100644 --- a/codegen/codegen-plugin/src/main/java/software/amazon/smithy/java/codegen/DirectedJavaCodegen.java +++ b/codegen/codegen-plugin/src/main/java/software/amazon/smithy/java/codegen/DirectedJavaCodegen.java @@ -135,6 +135,9 @@ public void generateOperation(GenerateOperationDirective directive) { // In TYPES-only mode, generateService is a no-op (the synthetic service has no real service shape) - if (modes.contains(CodegenMode.TYPES) && !modes.contains(CodegenMode.CLIENT) - && !modes.contains(CodegenMode.SERVER)) { + if (isTypesOnly()) { return; } @@ -193,4 +195,10 @@ public void customizeAfterIntegrations(CustomizeDirective