Skip to content

attributevalue marshal to AttributeValueMemberNULL with double pointer when outer pointer is not nil - #3290

Open
raduendv wants to merge 1 commit into
aws:mainfrom
raduendv:bug-double-pointer-to-attributevaluemembernull
Open

attributevalue marshal to AttributeValueMemberNULL with double pointer when outer pointer is not nil#3290
raduendv wants to merge 1 commit into
aws:mainfrom
raduendv:bug-double-pointer-to-attributevaluemembernull

Conversation

@raduendv

@raduendv raduendv commented Jan 22, 2026

Copy link
Copy Markdown
Contributor

Fixes: attributevalue.MarshalMap() to AttributeValueMemberNULL field with double pointer #2726

Description

var nilVal *int
s := struct {
	Foo **int `dynamodbav:"foo,omitempty"`
}{
	Foo: &nilVal,
}

The property foo should be serialized to &types.AttributeValueMemberNULL{} instead of falling back to omitempty since the first level pointer is not nil.

@raduendv
raduendv requested a review from a team as a code owner January 22, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant