Skip to content

Commit

Permalink
chore: update smithy version to 1.22.0 (#600)
Browse files Browse the repository at this point in the history
## Motivation

#597 is failing due to unresolved shape `smithy.api#Unit` which was introduced in smithy-lang/smithy#980

## Changes

Updated smithyVersion to 1.22.0.

## Result

AWS SDK handles `smithy.api#Unit` for operation correctly.
  • Loading branch information
Ganesh Jangir authored Aug 11, 2022
1 parent 3d9ec92 commit 7ef35fc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ import software.amazon.smithy.model.shapes.ShapeId
import software.amazon.smithy.model.traits.TimestampFormatTrait
import software.amazon.smithy.swift.codegen.integration.HttpBindingResolver
import software.amazon.smithy.swift.codegen.integration.ProtocolGenerator
import software.amazon.smithy.swift.codegen.integration.codingKeys.CodingKeysCustomizationJsonName
import software.amazon.smithy.swift.codegen.integration.codingKeys.DefaultCodingKeysCustomizable
import software.amazon.smithy.swift.codegen.integration.codingKeys.DefaultCodingKeysGenerator
import software.amazon.smithy.swift.codegen.integration.httpResponse.HttpResponseGenerator
import software.amazon.smithy.swift.codegen.integration.middlewares.ContentTypeMiddleware
import software.amazon.smithy.swift.codegen.integration.middlewares.OperationInputBodyMiddleware
import software.amazon.smithy.swift.codegen.middleware.MiddlewareStep

open class AwsJson1_0_ProtocolGenerator : AWSHttpBindingProtocolGenerator() {
override val codingKeysGenerator = DefaultCodingKeysGenerator(CodingKeysCustomizationJsonName())
override val codingKeysGenerator = DefaultCodingKeysGenerator(DefaultCodingKeysCustomizable())
override val defaultContentType = "application/x-amz-json-1.0"
override val defaultTimestampFormat = TimestampFormatTrait.Format.EPOCH_SECONDS
override val protocol: ShapeId = AwsJson1_0Trait.ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ import software.amazon.smithy.model.shapes.ShapeId
import software.amazon.smithy.model.traits.TimestampFormatTrait
import software.amazon.smithy.swift.codegen.integration.HttpBindingResolver
import software.amazon.smithy.swift.codegen.integration.ProtocolGenerator
import software.amazon.smithy.swift.codegen.integration.codingKeys.CodingKeysCustomizationJsonName
import software.amazon.smithy.swift.codegen.integration.codingKeys.DefaultCodingKeysCustomizable
import software.amazon.smithy.swift.codegen.integration.codingKeys.DefaultCodingKeysGenerator
import software.amazon.smithy.swift.codegen.integration.httpResponse.HttpResponseGenerator
import software.amazon.smithy.swift.codegen.integration.middlewares.ContentTypeMiddleware
import software.amazon.smithy.swift.codegen.integration.middlewares.OperationInputBodyMiddleware
import software.amazon.smithy.swift.codegen.middleware.MiddlewareStep

class AwsJson1_1_ProtocolGenerator : AWSHttpBindingProtocolGenerator() {
override val codingKeysGenerator = DefaultCodingKeysGenerator(CodingKeysCustomizationJsonName())
override val codingKeysGenerator = DefaultCodingKeysGenerator(DefaultCodingKeysCustomizable())
override val defaultContentType = "application/x-amz-json-1.1"
override val defaultTimestampFormat = TimestampFormatTrait.Format.EPOCH_SECONDS
override val protocol: ShapeId = AwsJson1_1Trait.ID
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
kotlin.code.style=official

# codegen
smithyVersion=1.13.1
smithyGradleVersion=0.5.3
smithyVersion=1.22.0
smithyGradleVersion=0.6.0

smithySwiftVersion = 0.1.0

Expand Down

0 comments on commit 7ef35fc

Please sign in to comment.