Skip to content

Commit 34fee55

Browse files
authored
fix: validate that members bound to URI paths are non-null at object construction (#637)
1 parent 5545f7d commit 34fee55

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"id": "4a49346f-f27e-4651-b432-6f3e54e5440c",
3+
"type": "bugfix",
4+
"description": "Validate that members bound to URI paths are non-null at object construction",
5+
"issues": [
6+
"awslabs/smithy-kotlin#139"
7+
]
8+
}

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ sdkVersion=0.16.4-SNAPSHOT
1212
smithyVersion=1.17.0
1313
smithyGradleVersion=0.5.3
1414
# smithy-kotlin codegen and runtime are versioned together
15-
smithyKotlinVersion=0.10.2
15+
smithyKotlinVersion=0.11.0-SNAPSHOT
1616

1717
# kotlin
1818
kotlinVersion=1.6.21
@@ -39,4 +39,4 @@ slf4jVersion=1.7.36
3939

4040
# dokka config (values specified at build-time as needed)
4141
smithyKotlinPackageListUrl=
42-
smithyKotlinDocBaseUrl=https://docs.aws.amazon.com/sdk-for-kotlin/latest/reference/smithy-kotlin
42+
smithyKotlinDocBaseUrl=https://docs.aws.amazon.com/sdk-for-kotlin/latest/reference/smithy-kotlin

services/s3/common/test/aws/sdk/kotlin/services/s3/model/TestS3Size.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ class TestS3Size {
1515
// see: https://github.com/awslabs/aws-sdk-kotlin/issues/309
1616

1717
val obj = Object { size = 100 }
18-
val req = PutObjectRequest { contentLength = 100 }
18+
val req = PutObjectRequest {
19+
bucket = "foo"
20+
key = "bar"
21+
contentLength = 100
22+
}
1923
assertIs<Long>(obj.size)
2024
assertIs<Long>(req.contentLength)
2125
}

0 commit comments

Comments
 (0)