Skip to content
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

admin_reset_user_password has incorrect default value for client_metadata #107

Closed
nk9 opened this issue Feb 25, 2022 · 2 comments
Closed

Comments

@nk9
Copy link

nk9 commented Feb 25, 2022

This module's admin_reset_user_password function has an optional client_metadata parameter. The default value of this parameter is None, but if you call the function without specifying any client metadata, you get this error:

Parameter validation failed:
Invalid type for parameter ClientMetadata, value: None, type: <class 'NoneType'>, valid types: <class 'dict'>

The solution is to pass an empty dictionary to client_metadata, which should be the default for that parameter.

nk9 added a commit to nk9/pycognito that referenced this issue Nov 12, 2022
@nk9
Copy link
Author

nk9 commented Nov 17, 2022

Released in 2022.11.0

1 similar comment
@nk9
Copy link
Author

nk9 commented Nov 17, 2022

Released in 2022.11.0

@nk9 nk9 closed this as completed Nov 20, 2022
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

No branches or pull requests

1 participant