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

Support Pydantic V2 #694

Open
3 of 10 tasks
koxudaxi opened this issue Apr 3, 2023 · 4 comments
Open
3 of 10 tasks

Support Pydantic V2 #694

koxudaxi opened this issue Apr 3, 2023 · 4 comments
Labels

Comments

@koxudaxi
Copy link
Owner

koxudaxi commented Apr 3, 2023

Pydantic V2 changes some behavior.
This issue should list all related issues and PRs related to V2.

  • Add an error when __root__ is set in the model. Add error message for root model in v2 #696
  • Strict mode type-checking.
  • Validator without a model.
  • Required and Nullable behavior like dataclass
  • Aliases in Field
  • Warning removed methods.
  • Respect conversion types table in type-checking.
  • Suggest running migration tools for v2
    • Jump to v2 migration documents
    • Run v2 migration tool
@koxudaxi koxudaxi added the Meta label Apr 3, 2023
@samuelcolvin
Copy link

Thanks so much for pinging me @koxudaxi.

In general this sounds great, a few pointers:

@koxudaxi
Copy link
Owner Author

koxudaxi commented Apr 3, 2023

@samuelcolvin
I'm checking the links.
Btw, Thank you for sponsoring me 🙇

@samuelcolvin
Copy link

No problem, thank you for everything you've done.

@davidgilbertson
Copy link

I notice you have Alias in this list, does that mean you're aware already of this issue where it only picks up on the alias, not the original name?

image

If not, you want me to create a separate issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants