You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AWSVerifiedPermissions service, which was introduced after AWS SDK release 0.18.0, includes a struct property named set. set is also a reserved word in Swift.
The serialization extension for that struct tries to escape `set` in backticks, then combine it with the suffix Container, which results in an invalid Swift identifier and a compile error.
/Users/runner/work/aws-sdk-swift/aws-sdk-swift/Sources/Services/AWSVerifiedPermissions/models/Models.swift:136:18: error: found an unexpected second identifier in constant declaration; is there an accidental break?
let `set`Container = try values.decodeIfPresent([VerifiedPermissionsClientTypes.AttributeValue?].self, forKey: .`set`)
^
Expected Behavior
Swift compiles correctly.
(More specifically, the generated Swift identifier should be setContainer with nothing backticked.)
Current Behavior
Swift compiles with the error identified above.
Reproduction Steps
Generate Swift code from latest models
Compile SDK including the AWSVerifiedPermissions service.
Possible Solution
Fix generation of symbols from Swift reserved words.
Additional Information/Context
No response
AWS SWIFT SDK version used
main / latest
Compiler and Version used
Xcode 14.3.1
Operating System and version
macOS 13.3
The text was updated successfully, but these errors were encountered:
Describe the bug
The
AWSVerifiedPermissions
service, which was introduced after AWS SDK release 0.18.0, includes a struct property namedset
.set
is also a reserved word in Swift.The serialization extension for that struct tries to escape
`set`
in backticks, then combine it with the suffixContainer
, which results in an invalid Swift identifier and a compile error.Expected Behavior
Swift compiles correctly.
(More specifically, the generated Swift identifier should be
setContainer
with nothing backticked.)Current Behavior
Swift compiles with the error identified above.
Reproduction Steps
Generate Swift code from latest models
Compile SDK including the
AWSVerifiedPermissions
service.Possible Solution
Fix generation of symbols from Swift reserved words.
Additional Information/Context
No response
AWS SWIFT SDK version used
main / latest
Compiler and Version used
Xcode 14.3.1
Operating System and version
macOS 13.3
The text was updated successfully, but these errors were encountered: