Closed jbelkins closed 1 month ago
The warnings are caused by union member targets that have default values. Union members are non-optional, but we are rendering the code to fill them with the default value applied.
For .numericvalue
:
"com.amazonaws.connect#EvaluationAnswerDataNumericValue": {
"type": "double",
"traits": {
"smithy.api#default": 0
}
},
For .notapplicable
:
"com.amazonaws.connect#Boolean": {
"type": "boolean",
"traits": {
"smithy.api#default": false
}
},
Describe the bug
When building the SDK, the following warnings are thrown:
Correct codegen so that deserialization code is not rendered with unnecessary defaults.
Expected Behavior
SDK should build without warnings
Current Behavior
SDK builds with the warnings shown above
Reproduction Steps
Build AWSConnect service Observe compiler output
Possible Solution
No response
Additional Information/Context
No response
AWS SWIFT SDK version used
1.0.3 / latest
Compiler and Version used
Xcode 16
Operating System and version
macOS 14