You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error message for the validation of a url field should tell humans what the error is about, not regex parser :-)
Actual behaviour
The standard error message for a pattern attribute of a JSONSchema string is literally transcribing the wronged regular expression. Which, in the case of a url`, can be long and unreadable, therefore unusable
To Reproduce
Creating an HTTP adapter with an incorrect URL, like in #106
Details
consider the implication for both (or either) backend and frontend validation
human-readable (short?) statement would be better (suggestion, drop the printout of the regex)
in the frontend, consider using destructured validation to pinpoint errors and utilise field-associated error messages:
the domain xxx is not valid
the protocol httpxyz is not valid
The text was updated successfully, but these errors were encountered:
vanch3d
changed the title
Pattern-based validation need a better UX approach
Pattern-based validations need a better UX approach
Sep 14, 2023
Expected behaviour
The error message for the validation of a
url
field should tell humans what the error is about, not regex parser :-)Actual behaviour
The standard error message for a
pattern
attribute of aJSONSchema string is literally transcribing the wronged regular expression. Which, in the case of a
url`, can be long and unreadable, therefore unusableTo Reproduce
Creating an HTTP adapter with an incorrect URL, like in #106
Details
xxx
is not validhttpxyz
is not validThe text was updated successfully, but these errors were encountered: