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
ashishdhingra
changed the title
Unable tu use user defined types due to Convert.ChangeType
Unable to use user defined types due to Convert.ChangeType
Mar 7, 2024
Discussed with the team. This is a new feature to implement support for custom types. However, in interim, we should throw proper exception during source generation.
Describe the bug
Current implementation of [FromHeaders] limits supported types to primitives like string/int
Expected Behavior
Correct values are passed from generated code to function
Current Behavior
It throws when I want to use Guid or other types with implicit cast from string or custom parser (IParsable)
Reproduction Steps
Add Guid as param with FromHeaderAttribute
Possible Solution
Enable using IParsable or casting from string
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
Amazon.Lambda.Annotations 1.2.0
Targeted .NET Platform
.NET 8
Operating System and version
Windows 10
The text was updated successfully, but these errors were encountered: