awslabs / aws-lambda-rust-runtime

A Rust runtime for AWS Lambda
Apache License 2.0
3.3k stars 335 forks source link

Allow null answerCorrect when deserializing CognitoEventUserPoolsVerifyAuthChallengeResponse. #826

Closed mawallace closed 6 months ago

mawallace commented 6 months ago

Issue #, if available: #825

Description of changes: Allows for deserialization of CognitoEventUserPoolsVerifyAuthChallenge when response.answerCorrect is explicitly null (not just missing). Cognito does send events with this field set to null, and this change will prevent errors when this does occur.

By submitting this pull request