-
Notifications
You must be signed in to change notification settings - Fork 28
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
Does not seem to convert Field's 'regex' to 'pattern' #55
Comments
Do you have an MRE? |
I can make one in a day or two! Will do. |
from typing import Annotated
from pydantic import BaseModel, Field
class Thing(BaseModel):
name: Annotated[str, Field(regex="^[A-Z]")]
print(Thing(name="Testing.")) |
Got it. Thanks. I'll fix it. |
Awesome! Thank you so much! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is very cool! Unfortunately, it does not seem to convert 'regex' to 'pattern' for
Field
.The text was updated successfully, but these errors were encountered: