Description
Describe the bug
When i invoke StartWebAuthnRegistrationAsync in the .NET SDK to start the passkey registration procedure i get:
"Cannot Convert DocumentType to List because it is Dictionary"
My implementation is a simple invocation without any parsing or deseralization that would explain this, suggesting it might be an issue in the underlying SDK code.
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
Method returns StartWebAuthnRegistrationResponse as documented without said serialization issue.
Current Behavior
Invocation throws exception:
Amazon.Runtime.Documents.InvalidDocumentTypeConversionException: Cannot Convert DocumentType to List because it is Dictionary
at Amazon.Runtime.Documents.Document.AssertIsType(DocumentType type)
at Amazon.Runtime.Documents.Document.AsList()
at Amazon.Runtime.Documents.Document.System.Collections.Generic.IEnumerable<Amazon.Runtime.Documents.Document>.GetEnumerator()
at System.Text.Json.Serialization.Converters.IEnumerableDefaultConverter`2.OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state)
...
at Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatter.WriteResponseBodyAsync(...)
Reproduction Steps
invoke method StartWebAuthnRegistrationAsync of .NET SDK
Possible Solution
Resolve underlying serialization issue
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
3.7.406.3 but also encountered in latest version
Targeted .NET Platform
net 8.0
Operating System and version
macos 14.3.1 (23D60)