Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Improve error messages for URL validation #2324

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

ff137
Copy link

@ff137 ff137 commented Oct 18, 2024

Resolves #2243

@lafrech
Copy link
Member

lafrech commented Oct 24, 2024

I'd do it differently. In init function, build the error string from the parameters to specify the kind of URL that is expected (relative, absolute, FQDN,...).

I gave it a quick shot but didn't find a satisfying phrasing. It might look weird for a client to get a response mentioning FQDN for the (default) URL case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fields.URL validation error should specify "not a valid FQDN" if trying to pass hostname without domain
2 participants