-
Notifications
You must be signed in to change notification settings - Fork 4
Example request: An example with custom serialization/desrialization #289
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
Comments
bro would you please explain a little bit more about what you want ? |
Hello @devbazregari, This would be an example in the examples/ directory, preferably in a subdirectory like |
in fact, do you want me to show an example of serializing and deserializing in pydantic aioredis? |
@devbazregari feel free to make a PR, but I may not accept it if the example does not match the quality of our other examples. This issue is a goal as part of the 1.0 release of this library to make sure that things are well documented and have examples for users to follow. |
sure. I give it my best. |
Ok, the goal is to release 1.0 this week |
bro in overriding json_default and serialize_partially/deserialize_partially do you want me to implement the logic or just show users how to override ?! I'm asking this stupid question :) because I read your code and see you implemented the logic. |
This adds a new feature, the ability to customize the json deserialization into objects using a json.loads object hook. it also updates documentation and includes an example of customizing serialization and deserialization of python objects #289
This adds a new feature, the ability to customize the json deserialization into objects using a json.loads object hook. it also updates documentation and includes an example of customizing serialization and deserialization of python objects #289
Describe the solution you'd like
A new example that shows a custom serializer/deserializer based on the documentation https://pydantic-aioredis.readthedocs.io/en/latest/serialization.html
This example should show overriding json_default and serialize_partially/deserialize_partially.
The text was updated successfully, but these errors were encountered: