Skip to content

Conversation

@peterrsongg
Copy link
Contributor

Issue #, if available:
Fix Issue #2166
Description of changes:

I validated the change by flipping the ForceAliasCreation value in \Libraries\test\EventsTests.Shared\cognito-migrateuser-event.json to null and seeing that it was serialized properly (to null).

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@normj normj changed the base branch from master to dev October 29, 2025 22:57
"Name": "Amazon.Lambda.CognitoEvents",
"Type": "Patch",
"ChangelogMessages": [
"Make ForceAliasCreation nullable to allow proper serialization"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add [Breaking Change] as a prefix. It is a very minor breaking change but we should be as transparent as policy. Maybe rephrase the message as more of a bug fix then just stating a fact. Possible option.

[Breaking Change] Fixed issue not handling null value during deserialization for `ForceAliasCreation` by making it nullable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@peterrsongg peterrsongg requested a review from normj October 29, 2025 23:04
@ThomasEg
Copy link

I'm the OP of #2166 and i've tried the code in this PR from @peterrsongg in my original codebase and can confirm that it solves the issue.

@normj normj merged commit 0dae4e0 into dev Oct 31, 2025
9 checks passed
@normj normj deleted the petesong/lambda-gh-2166 branch October 31, 2025 23:51
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.

4 participants