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
operationFoo {
input := {
bar: Bar
}
}
structureBar {
@idempotencyTokendedpue: String
}
The generated serializer code incorrectly assumes that a context: ExecutionContext value is in scope when attempting to serialize the request. The problem is likely in SerializeStructGenerator.idempotencyTokenPostfix.
Instead, according to Smithy's trait documentation, we should be silently ignoring the trait whenever we encounter it applied to a member of a non-top-level, non-input shape. (This "desired behavior" seems incorrect, confirming with Smithy team.)
Expected behavior
Idempotency tokens should be ignored when applied to a nested or non-input shape
Current behavior
Codegen incorrectly generates serialization code for nested idempotency tokens, causing compilation to fail
Steps to Reproduce
See model above
Possible Solution
No response
Context
No response
Smithy-Kotlin version
1.2.18
Platform (JVM/JS/Native)
JVM
Operating system and version
(n/a)
The text was updated successfully, but these errors were encountered:
Describe the bug
Given a model:
The generated serializer code incorrectly assumes that a
context: ExecutionContext
value is in scope when attempting to serialize the request. The problem is likely inSerializeStructGenerator.idempotencyTokenPostfix
.Instead, according to Smithy's trait documentation, we should be silently ignoring the trait whenever we encounter it applied to a member of a non-top-level, non-input shape. (This "desired behavior" seems incorrect, confirming with Smithy team.)
Expected behavior
Idempotency tokens should be ignored when applied to a nested or non-input shape
Current behavior
Codegen incorrectly generates serialization code for nested idempotency tokens, causing compilation to fail
Steps to Reproduce
See model above
Possible Solution
No response
Context
No response
Smithy-Kotlin version
1.2.18
Platform (JVM/JS/Native)
JVM
Operating system and version
(n/a)
The text was updated successfully, but these errors were encountered: