You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 9, 2026. It is now read-only.
Url types are not aware of extension during validation #1555
Url types do not perform validation on the url extension. For instance, if a url has extension to an audio file (.wav), ImageURL can still accept it.
in the screenshot below, when a field is defined like this item: Union[ImageUrl, AudioUrl, str], when it is initialized like this : MyClass(item='link to audio') it will be validated against a ImageUrl. This is because ImageUrl considers a .wav file a valid image
changed the title [-]Url types are not aware of extension during validation[/-][+]Union over url types: Url types are not aware of extension during validation[/+]on May 19, 2023
changed the title [-]Union over url types: Url types are not aware of extension during validation[/-][+]Url types are not aware of extension during validation[/+]on May 19, 2023
Activity
[-]Url types are not aware of extension during validation[/-][+]Union over url types: Url types are not aware of extension during validation[/+][-]Union over url types: Url types are not aware of extension during validation[/-][+]Url types are not aware of extension during validation[/+]makram93 commentedon May 31, 2023
pinging to pick this up