-
Notifications
You must be signed in to change notification settings - Fork 644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
json
annotations are not supported in attributevalue.MarshalMap
#1486
Comments
I have encountered the same bug which
|
Same bug for me after update to aws sdk v1.11.1 |
Thanks for reaching out. The issue you're experiencing is the intended behavior of V2 SDK's AttributeValue (un)marshalers. The best way to configure the (un)marshalers to use alternative struct tags is to documented in the package's Overview There are a few ways you can configure the (un)marshaler for the serialized id to use.
|
Thanks for your response @jasdel, I know those solutions and that what I am doing at the moment but
and the behaviour is inconsistent because, some times it marshals the structs correctly and sometimes not and that causes a lot of inconsistency in the databases |
@jasdel To proof what we are talking about, here a demonstration of different behaviours for the same pkg case 1 : case 2 : case 3 : all what you need to look at the printed keys |
I've created #1569 to track the issue with the SDK's DDB attribute value marshaler inconsistently serializing struct field names. Lets track that issue, and close this one. since this issue focused on the original feature to provide options to |
|
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
json
annotations are not supported in attributevalue.MarshalMap. The only supported annotations aredynamodbav
. This is a regression compared to the V1 SDK.Version of AWS SDK for Go?
Example: v1.11.0, DDB: 1.7.0
Version of Go (
go version
)?1.16
To Reproduce (observed behavior)
Expected behavior
Return:
The text was updated successfully, but these errors were encountered: