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

feature: Use json mode to dump pydantic v2 models by default #4111

Open
andletenkov opened this issue Aug 10, 2023 · 0 comments
Open

feature: Use json mode to dump pydantic v2 models by default #4111

andletenkov opened this issue Aug 10, 2023 · 0 comments
Labels
enhancement Enhancement proposals

Comments

@andletenkov
Copy link

Feature request

Hi! I think it will be convenient to dump pydantic v2 models via model_dump(mode="json") because in many cases it will allow to omit an implementation of custom json encoders and let pydantic-core do the job.

Motivation

No response

Other

No response

@andletenkov andletenkov added the enhancement Enhancement proposals label Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement proposals
Projects
None yet
Development

No branches or pull requests

1 participant