calavera / aws-lambda-events

Rust event types for AWS Lambda
MIT License
128 stars 55 forks source link

`CognitoEventUserPoolsDefineAuthChallengeRequest::user_not_found` should be optional #156

Closed djrenren closed 1 year ago

djrenren commented 1 year ago

As is, the field is required, which means that a serde will throw an error when trying to parse the request, unless you have preventUserExistenceErrors set to true for the client.

If preventUserExistenceErrors is false, the lambda will panic every time, because the field is missing.