Skip to content

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