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-aws-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/aws/protocols/RestJson1.kt
+1-5Lines changed: 1 addition & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -44,11 +44,7 @@ class RestJson1 : JsonHttpBindingProtocolGenerator() {
44
44
45
45
val resolver = getProtocolHttpBindingResolver(ctx.model, ctx.service)
46
46
47
-
if (ctx.settings.build.generateServiceProject) {
48
-
if (!resolver.hasHttpResponseBody(op)) return
49
-
} else {
50
-
if (!resolver.hasHttpRequestBody(op)) return
51
-
}
47
+
if (!resolver.hasHttpRequestBody(op)) return
52
48
53
49
// restjson1 has some different semantics and expectations around empty structures bound via @httpPayload trait
0 commit comments