Skip to content

Use Annotated[pydantic.AnyUrl, pydantic.UrlConstraints(host_required=False)] instead of AnyUrl #86

Open
@dsp-ant

Description

@dsp-ant

Pydantic's AnyUrl requires a host to be specified. For file resources this means that a triple slash such as file:///foo.txt is required because there is no host. We should likely be using Annotated[pydantic.AnyUrl, pydantic.UrlConstraints(host_required=False)] or something along these lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions