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.
As the current
url()validation action relies on the URL constructor, which requires abaseargument 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.