@@ -3908,6 +3908,7 @@ def url_schema(
39083908 default_host : str | None = None ,
39093909 default_port : int | None = None ,
39103910 default_path : str | None = None ,
3911+ preserve_empty_path : bool | None = None ,
39113912 strict : bool | None = None ,
39123913 ref : str | None = None ,
39133914 metadata : dict [str , Any ] | None = None ,
@@ -3932,6 +3933,7 @@ def url_schema(
39323933 default_host: The default host to use if the URL does not have a host
39333934 default_port: The default port to use if the URL does not have a port
39343935 default_path: The default path to use if the URL does not have a path
3936+ preserve_empty_path: Whether to preserve an empty path or convert it to '/', default False
39353937 strict: Whether to use strict URL parsing
39363938 ref: optional unique identifier of the schema, used to reference the schema in other places
39373939 metadata: Any other information you want to include with the schema, not used by pydantic-core
@@ -3945,6 +3947,7 @@ def url_schema(
39453947 default_host = default_host ,
39463948 default_port = default_port ,
39473949 default_path = default_path ,
3950+ preserve_empty_path = preserve_empty_path ,
39483951 strict = strict ,
39493952 ref = ref ,
39503953 metadata = metadata ,
@@ -3974,6 +3977,7 @@ def multi_host_url_schema(
39743977 default_host : str | None = None ,
39753978 default_port : int | None = None ,
39763979 default_path : str | None = None ,
3980+ preserve_empty_path : bool | None = None ,
39773981 strict : bool | None = None ,
39783982 ref : str | None = None ,
39793983 metadata : dict [str , Any ] | None = None ,
@@ -3998,6 +4002,7 @@ def multi_host_url_schema(
39984002 default_host: The default host to use if the URL does not have a host
39994003 default_port: The default port to use if the URL does not have a port
40004004 default_path: The default path to use if the URL does not have a path
4005+ preserve_empty_path: Whether to preserve an empty path or convert it to '/', default False
40014006 strict: Whether to use strict URL parsing
40024007 ref: optional unique identifier of the schema, used to reference the schema in other places
40034008 metadata: Any other information you want to include with the schema, not used by pydantic-core
@@ -4011,6 +4016,7 @@ def multi_host_url_schema(
40114016 default_host = default_host ,
40124017 default_port = default_port ,
40134018 default_path = default_path ,
4019+ preserve_empty_path = preserve_empty_path ,
40144020 strict = strict ,
40154021 ref = ref ,
40164022 metadata = metadata ,
0 commit comments