Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions python/pydantic_core/core_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@ class StringSchema(TypedDict, total=False):
to_upper: bool
regex_engine: Literal['rust-regex', 'python-re'] # default: 'rust-regex'
strict: bool
coerce_numbers_to_str: bool
ref: str
metadata: Any
serialization: SerSchema
Expand Down
1 change: 1 addition & 0 deletions src/validators/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ impl StrConstrainedValidator {
|| self.strip_whitespace
|| self.to_lower
|| self.to_upper
|| self.coerce_numbers_to_str
}
}

Expand Down