Skip to content

Commit 2cbaa88

Browse files
author
luigi
committed
fix
1 parent 64e93b7 commit 2cbaa88

File tree

1 file changed

+1
-5
lines changed
  • codegen/smithy-aws-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/aws/protocols

1 file changed

+1
-5
lines changed

codegen/smithy-aws-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/aws/protocols/RestJson1.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,7 @@ class RestJson1 : JsonHttpBindingProtocolGenerator() {
4444

4545
val resolver = getProtocolHttpBindingResolver(ctx.model, ctx.service)
4646

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
5248

5349
// restjson1 has some different semantics and expectations around empty structures bound via @httpPayload trait
5450
// * empty structures get serialized to `{}`

0 commit comments

Comments
 (0)