Replies: 1 comment
-
Hello 👋 A fellow user of Reimplementing its own serialization/deserialization logic instead of using a well established package like If the maintainers of this project are intrigued by this idea and just lack the time for implementation, I would volunteer to make this change. 🙂 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was thinking about deserialisation of incoming requests to dataclasses in this PR - in particular nested dictionaries. Starting a new discussion here as it's a separate scope.
It would be possible for us to implement such deserialisation in the library. However, pydantic models (and pydantic dataclasses) already support this, and using them as the primary data structure in v1.0 is generally a good fit.
What do you think?
Pydantic's dataclasses are very similar to normal python dataclasses, so should result in little additional friction for users to upgrade versions. Or we could make a (slightly) bigger jump to pydantic models
An example of deserialisation with pydantic models:
An example of deserialisation with pydantic dataclasses
Beta Was this translation helpful? Give feedback.
All reactions