Skip to content

Commit 3a72993

Browse files
authored
Add url_preserve_empty_path entry to CoreConfig (#1823)
1 parent 6c643ee commit 3a72993

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/pydantic_core/core_schema.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ class CoreConfig(TypedDict, total=False):
7979
validate_by_alias: Whether to use the field's alias when validating against the provided input data. Default is `True`.
8080
validate_by_name: Whether to use the field's name when validating against the provided input data. Default is `False`. Replacement for `populate_by_name`.
8181
serialize_by_alias: Whether to serialize by alias. Default is `False`, expected to change to `True` in V3.
82+
url_preserve_empty_path: Whether to preserve empty URL paths when validating values for a URL type. Defaults to `False`.
8283
"""
8384

8485
title: str
@@ -119,6 +120,7 @@ class CoreConfig(TypedDict, total=False):
119120
validate_by_alias: bool # default: True
120121
validate_by_name: bool # default: False
121122
serialize_by_alias: bool # default: False
123+
url_preserve_empty_path: bool # default: False
122124

123125

124126
IncExCall: TypeAlias = 'set[int | str] | dict[int | str, IncExCall] | None'

0 commit comments

Comments
 (0)