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

Pydantic Serialization #596

Open
bigusef opened this issue Feb 3, 2024 · 1 comment
Open

Pydantic Serialization #596

bigusef opened this issue Feb 3, 2024 · 1 comment

Comments

@bigusef
Copy link

bigusef commented Feb 3, 2024

Hi, are there any plans to support serialization and deserialization with Pydantic.
Recently I using different framework alternative to DRF, and all these framework using Pydantic to serialize and deserialize python object specially on handling HTTP request and response.
so my question is are there any plans to provide custom type like serializerfields.PhoneNumberField

@francoisfreitag
Copy link
Collaborator

Hi,

I don’t mind shipping a helper for Pydantic, it makes sense for this project to offer bridges to popular libraries.
Feel free to open a pull request with the helper, and a bunch of tests to exercise its behavior. 👍

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

2 participants