Closed taro0513 closed 5 months ago
Hey, thank you for your PR.
Pattern is indeed a correct way to set regex in Pydantic v2, but it's also not recommended to use constr
at all in the new version.
This issue is fixed in the new version of this article.
Modified constr parameter name from regex to pattern