| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sorry, something went wrong.
|
Thanks for the PR! We're going through the backlog of PRs right now, and will get back to you once we've had the time to review this and consider the (breaking) change 🙏 |
Sorry, something went wrong.
|
@svlandeg Nice to hear you are taking action on this matter. There is remark, the parameter the was renamed between Pydantic v1 and v2 is regex-> pattern, not as listed in the PR. The suggestion I made in the PR was to keep both versions compatible when upgrading, but there is an alternative, which is not managing the change between them and just provide the proper type hints. If you want me to update the PR just let me know, IDK which approach is more adequate for the project. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM!
This keep supporting old ways of specifying pattern (regex parameter, and pattern via schema_extra), but emits warnings in these cases. We will remove this support in the future versions.
Sorry, something went wrong.
There was a problem hiding this comment.
@YuriiMotov I added a blocking comment, please review it and let me know if you will address it (since it was your change to clean the code and prepare the PR) or should I? Anyway I will be around... 🤠
PS: Annotations were updated for re.Pattern support.
Sorry, something went wrong.
|
guys what's the news on this? |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
I faced this issue with Pydantic V2 and there is a simple workaround to it by passing the pattern Field parameter as schema extra:
Ex:
I don't know if this issue was already fixed in another branch, I saw there was a temporary PR already made but closed.