-
- Downloads
Fix compilation error in generate code caused by name collision (#3175)
## Motivation and Context If you had a model like this: ```smithy @http(uri: "/SomeOperation2", method: "GET") operation GetThing { // input: GetThingInput, output: GetThingOutput } ``` But then nested in some other API you did something like this: ```smithy list GetThings { member: GetThingOutput } ``` Code would fail to compile because we generated the same method signature for two different types. ## Description <!--- Describe your changes in detail --> ## Testing - [x] fixes minimal reproducer ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
Showing
- codegen-client/src/test/kotlin/software/amazon/smithy/rust/codegen/client/smithy/NamingObstacleCourseTest.kt 13 additions, 0 deletions...hy/rust/codegen/client/smithy/NamingObstacleCourseTest.kt
- codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/ProtocolFunctions.kt 8 additions, 1 deletion...y/rust/codegen/core/smithy/protocols/ProtocolFunctions.kt
- codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/testutil/NamingObstacleCourseTestModels.kt 58 additions, 0 deletions...t/codegen/core/testutil/NamingObstacleCourseTestModels.kt
Loading
Please register or sign in to comment