We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 890583b commit ffd0adcCopy full SHA for ffd0adc
packages/common-library/src/common_library/pydantic_networks_extension.py
@@ -8,20 +8,20 @@ def _strip_last_slash(url: str) -> str:
8
9
10
AnyUrlLegacy: TypeAlias = Annotated[
11
- str,
12
AnyUrl,
+ AfterValidator(str),
13
AfterValidator(_strip_last_slash),
14
]
15
16
AnyHttpUrlLegacy: TypeAlias = Annotated[
17
18
AnyHttpUrl,
19
20
21
22
23
HttpUrlLegacy: TypeAlias = Annotated[
24
25
HttpUrl,
26
27
0 commit comments