Skip to content

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