Skip to content

Support for relative URLs #1256

Description

@benedictleejh

As the current url() validation action relies on the URL constructor, which requires a base argument when the URL is relative, relative URLs are not considered to be valid URLs by the current implementation. There are cases where a relative URL is useful as a valid input, but users would need to write their own custom relative URL validation action to validate this at the moment. It would be nice if Valibot can support this by default.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions