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

Fix encoding keys in Mapping branch of Encoder #785

Merged
merged 4 commits into from Dec 3, 2023

Conversation

Rubikoid
Copy link
Contributor

Force every Mapping (dict, etc...) keys be string after encoding, because in other way mongo will throw
bson.errors.InvalidDocument: documents must have only string keys, key was <key>.

This needs for normal encoding dicts like dict[uuid.UUID, datetime.datetime].

Rubikoid and others added 4 commits November 16, 2023 06:34
@roman-right roman-right merged commit f109cd8 into BeanieODM:main Dec 3, 2023
21 checks passed
@roman-right
Copy link
Member

Hi @Rubikoid ,

Thank you for the PR! Merged. Will be published soon

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.

None yet

2 participants