Skip to content

Commit 2e5f7f1

Browse files
committed
Add missing smithy-json and smithy-aws-event-stream dependencies
1 parent c973cbb commit 2e5f7f1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

codegen/core/src/main/java/software/amazon/smithy/python/codegen/ClientGenerator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ raise ExpectationNotMetError("protocol and transport MUST be set on the config t
222222
private void generateEventStreamOperation(PythonWriter writer, OperationShape operation) {
223223
writer.pushState(new OperationSection(service, operation));
224224
writer.addDependency(SmithyPythonDependency.SMITHY_CORE);
225+
writer.addDependency(SmithyPythonDependency.SMITHY_AWS_EVENT_STREAM);
225226
var operationSymbol = symbolProvider.toSymbol(operation);
226227
writer.putContext("operation", operationSymbol);
227228
var operationMethodSymbol = operationSymbol.expectProperty(OPERATION_METHOD);

codegen/core/src/main/java/software/amazon/smithy/python/codegen/integrations/RestJsonProtocolGenerator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public ApplicationProtocol getApplicationProtocol(GenerationContext context) {
8484
@Override
8585
public void initializeProtocol(GenerationContext context, PythonWriter writer) {
8686
writer.addDependency(SmithyPythonDependency.SMITHY_AWS_CORE);
87+
writer.addDependency(SmithyPythonDependency.SMITHY_JSON);
8788
writer.addImport("smithy_aws_core.aio.protocols", "RestJsonClientProtocol");
8889
var serviceSymbol = context.symbolProvider().toSymbol(context.settings().service(context.model()));
8990
var serviceSchema = serviceSymbol.expectProperty(SymbolProperties.SCHEMA);

0 commit comments

Comments
 (0)