Skip to content

Commit c8c0ce4

Browse files
committed
Add name variable before symbol build call
1 parent e814532 commit c8c0ce4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ public Symbol operationShape(OperationShape shape) {
283283

284284
// We add a symbol for the method in the client as a property, whereas the actual
285285
// operation symbol points to the generated type for it
286-
return createGeneratedSymbolBuilder(shape, getDefaultShapeName(shape), SHAPES_FILE)
286+
var name = CaseUtils.toSnakeCase(getDefaultShapeName(shape)).toUpperCase(Locale.ENGLISH);
287+
return createGeneratedSymbolBuilder(shape, name, SHAPES_FILE)
287288
.putProperty(SymbolProperties.OPERATION_METHOD, methodSymbol)
288289
.build();
289290
}

0 commit comments

Comments
 (0)