You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/smoketests/SmokeTestsRunnerGenerator.kt
@@ -207,8 +208,9 @@ class SmokeTestsRunnerGenerator(
207
208
node:Node,
208
209
shapes:Map<String, Shape>,
209
210
testCase:SmokeTestCase,
210
-
): String {
211
-
val shape = shapes[paramName] ?:throwException("Unable to find shape for operation parameter '$paramName' in smoke test '${testCase.functionName}'")
211
+
shapeOverride:Shape? = null,
212
+
) {
213
+
val shape = shapeOverride ?: shapes[paramName] ?:throwException("Unable to find shape for operation parameter '$paramName' in smoke test '${testCase.functionName}'.")
212
214
when {
213
215
// String enum
214
216
node isStringNode&& shape.isStringEnumShape -> {
@@ -224,10 +226,30 @@ class SmokeTestsRunnerGenerator(
val memberShape = shape.allMembers[member.key.value] ?:throwException("Unable to find shape for operation parameter '$paramName' in smoke test '${testCase.functionName}'.")
236
+
writer.writeInline("#L = ", memberName)
237
+
renderOperationParameter(memberName, member.value, mapOf(memberName to memberShape), testCase)
0 commit comments