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

feat(field): add pattern parameter and deprecate regex #494

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jmjaenlorites
Copy link

  • Added a new pattern parameter to the Field function.
  • Marked the regex parameter as deprecated with a comment.

This change allows users to specify a pattern for field validation, aligning with pydantic 2.X versions.

- Added a new `pattern` parameter to the `Field` function.
- Marked the `regex` parameter as deprecated with a comment.
- Imported the `warnings` module for potential future use.

This change allows users to specify a pattern for field validation, aligning with modern practices.
@jmjaenlorites
Copy link
Author

This PR fixes issue #397.

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

Successfully merging this pull request may close these issues.

1 participant