Open jbelkins opened 2 months ago
In the case of AWSWAFV2
above, the cause is that the property being modified is @Indirect
:
public struct NotStatement: Swift.Sendable {
/// The statement to negate. You can use any statement that can be nested.
/// This member is required.
@Indirect public var statement: WAFV2ClientTypes.Statement?
public init(
statement: WAFV2ClientTypes.Statement? = nil
)
{
self.statement = statement
}
}
In the case of AWSQBusiness
, the value
is a struct
with no members that is being written to an event stream.
public struct EndOfInputEvent: Swift.Sendable {
public init() { }
}
The generated code only sends an :event-type
in this event message:
headers.append(.init(name: ":event-type", value: .string("endOfInputEvent")))
It is worth investigation to see if this creates a valid message on the event stream.
The second of these is fixed here: https://github.com/smithy-lang/smithy-swift/pull/839
Describe the bug
When building the SDK, the following warnings are received:
Correct codegen so that these warnings are not received.
Expected Behavior
SDK should build without warnings.
Current Behavior
SDK builds with the warnings listed above.
Reproduction Steps
Build the AWSWAFV2 and AWSQBusiness services Observe the compiler warnings
Possible Solution
No response
Additional Information/Context
No response
AWS SWIFT SDK version used
1.0.3 / latest
Compiler and Version used
Xcode 16.0
Operating System and version
macOS 14