File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ kotlin.code.style=official
3
3
# config
4
4
5
5
# codegen
6
- smithyVersion =1.47 .0
6
+ smithyVersion =1.49 .0
7
7
smithyGradleVersion =0.6.0
8
8
9
9
# kotlin
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package software.amazon.smithy.swift.codegen
3
3
import software.amazon.smithy.aws.traits.ServiceTrait
4
4
import software.amazon.smithy.aws.traits.auth.SigV4Trait
5
5
import software.amazon.smithy.aws.traits.auth.UnsignedPayloadTrait
6
- import software.amazon.smithy.codegen.core.CodegenException
7
6
import software.amazon.smithy.codegen.core.Symbol
8
7
import software.amazon.smithy.model.knowledge.ServiceIndex
9
8
import software.amazon.smithy.model.shapes.OperationShape
@@ -285,7 +284,7 @@ fun Parameter.toSymbol(): Symbol {
285
284
val swiftType = when (type) {
286
285
ParameterType .STRING -> SwiftTypes .String
287
286
ParameterType .BOOLEAN -> SwiftTypes .Bool
288
- else -> throw CodegenException ( " Unsupported parameter type: $type " )
287
+ ParameterType . STRING_ARRAY -> SwiftTypes . StringArray
289
288
}
290
289
var builder = Symbol .builder().name(swiftType.fullName)
291
290
if (! isRequired) {
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ object SwiftTypes {
16
16
val Double = builtInSymbol(" Double" )
17
17
val Bool = builtInSymbol(" Bool" )
18
18
19
+ val StringArray = builtInSymbol(" Array<Swift.String>" )
20
+
19
21
val List = builtInSymbol(" List" )
20
22
val Set = builtInSymbol(" Set" )
21
23
val Map = builtInSymbol(" Map" )
Original file line number Diff line number Diff line change 5
5
6
6
package software.amazon.smithy.swift.codegen.endpoints
7
7
8
- import software.amazon.smithy.codegen.core.CodegenException
9
8
import software.amazon.smithy.codegen.core.Symbol
10
9
import software.amazon.smithy.rulesengine.language.EndpointRuleSet
11
10
import software.amazon.smithy.rulesengine.language.syntax.parameters.Parameter
@@ -86,7 +85,7 @@ fun Parameter.toSymbol(): Symbol {
86
85
val swiftType = when (type) {
87
86
ParameterType .STRING -> SwiftTypes .String
88
87
ParameterType .BOOLEAN -> SwiftTypes .Bool
89
- else -> throw CodegenException ( " Unsupported parameter type: $type " )
88
+ ParameterType . STRING_ARRAY -> SwiftTypes . StringArray
90
89
}
91
90
var builder = Symbol .builder().name(swiftType.fullName)
92
91
if (! isRequired) {
You can’t perform that action at this time.
0 commit comments