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

Implement pydantic-JSON serializer #1

Open
eigenein opened this issue Jun 14, 2022 · 0 comments
Open

Implement pydantic-JSON serializer #1

eigenein opened this issue Jun 14, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@eigenein
Copy link
Member

eigenein commented Jun 14, 2022

That'd allow putting a model instance directly into a cache and get it stored as JSON.

Something like class PydanticJsonSerializer(Serializer[BaseModelT, bytes]), and the scheme like pydantic-json://.

Use:

Perhaps, also forward some BaseModel.json parameters to the serializer parameters.

@eigenein eigenein added the enhancement New feature or request label Jun 14, 2022
@eigenein eigenein changed the title Implement PydanticJsonSerializer(Serializer[BaseModelT, bytes]) Implement pydantic-JSON serializer Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant