Skip to content

Pass current field name to raw BSON decoder #326

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

Closed

Conversation

wronglink
Copy link
Contributor

@wronglink wronglink commented Jun 7, 2017

This PR makes both python and c BSON decoder implementation pass current decoding field name to raw BSON decoder (e.g. RawBSONDocument). It is needed to add some name-dependent decoding behaviour.
In addition to context sharing between decoding levels from #324 it can give custom BSON decoder such feature like decoding map (e.g. foo array would be decoded to FooClass object, and the inner foo.bar array would be wrapped by BarClass)

@behackett
Copy link
Member

Thanks again for your contributions. As mentioned in #324, I think using raw documents for this use case is the wrong thing to do.

@behackett behackett closed this Jun 16, 2017
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.

2 participants