tiangolo / sqlmodel

SQL databases in Python, designed for simplicity, compatibility, and robustness.
https://sqlmodel.tiangolo.com/
MIT License
13.52k stars 611 forks source link

🐛 Fix set varchar limit when `max_length` is set on Pydantic models using Pydantic v2 #963

Closed estebanx64 closed 3 weeks ago

tiangolo commented 3 weeks ago

Great, thanks! :rocket:

I moved the import of annotated_types to the Pydantic v2 section as it is required only by Pydantic v2 but not by Pydantic v1.

I still don't have something in the CI tests to check for those cases, I should add that. :thinking:

But this is done, great job, thank you! :rocket: