Skip to content

Commit 196da52

Browse files
authored
feat: add support for smithy document type (#645)
1 parent 6982d70 commit 196da52

File tree

2 files changed

+9
-28
lines changed

2 files changed

+9
-28
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"id": "c65f0bcc-f757-4a30-89b8-5f952129fd60",
3+
"type": "feature",
4+
"description": "Add support for smithy Document type.",
5+
"issues": [
6+
"awslabs/smithy-kotlin#123"
7+
]
8+
}

codegen/smithy-aws-kotlin-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/protocols/core/AwsHttpBindingProtocolGenerator.kt

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -54,32 +54,6 @@ abstract class AwsHttpBindingProtocolGenerator : HttpBindingProtocolGenerator()
5454
}
5555

5656
override fun generateProtocolUnitTests(ctx: ProtocolGenerator.GenerationContext) {
57-
val ignoredTests = TestMemberDelta(
58-
setOf(
59-
// restJson
60-
// FIXME - document type not fully supported yet, see https://github.com/awslabs/smithy-kotlin/issues/123
61-
"DocumentTypeInputWithObject",
62-
"DocumentTypeAsPayloadInput",
63-
"DocumentTypeAsPayloadInputString",
64-
"DocumentOutput",
65-
"DocumentTypeAsPayloadOutput",
66-
"DocumentTypeAsPayloadOutputString",
67-
"DocumentInputWithString",
68-
"DocumentInputWithNumber",
69-
"DocumentInputWithBoolean",
70-
"DocumentInputWithList",
71-
"DocumentOutputString",
72-
"DocumentOutputNumber",
73-
"DocumentOutputBoolean",
74-
"DocumentOutputArray",
75-
76-
// awsJson1.1
77-
// FIXME - document type not fully supported yet, see https://github.com/awslabs/smithy-kotlin/issues/123
78-
"PutAndGetInlineDocumentsInput",
79-
),
80-
TestContainmentMode.EXCLUDE_TESTS
81-
)
82-
8357
// The following can be used to generate only a specific test by name.
8458
// val targetedTest = TestMemberDelta(setOf("RestJsonComplexErrorWithNoMessage"), TestContainmentMode.RUN_TESTS)
8559

@@ -91,8 +65,7 @@ abstract class AwsHttpBindingProtocolGenerator : HttpBindingProtocolGenerator()
9165
ctx,
9266
requestTestBuilder,
9367
responseTestBuilder,
94-
errorTestBuilder,
95-
ignoredTests
68+
errorTestBuilder
9669
).generateProtocolTests()
9770
}
9871

0 commit comments

Comments
 (0)