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
What do you think is the correct solution to problem?
It would be nice to show the location in the string where the pattern is violated.
I couldn't find any JS API that would return errors when matching a string from a regex.
However, it seems that negating (not sure if that's generalizable) a given regex could do the trick:
What version of Ajv you are you using?
8.12.0
What problem do you want to solve?
More explicit error details when using
pattern
onstring
properties.Current behaviour:
What do you think is the correct solution to problem?
It would be nice to show the location in the string where the pattern is violated.
I couldn't find any JS API that would return errors when matching a string from a regex.
However, it seems that negating (not sure if that's generalizable) a given regex could do the trick:
The text was updated successfully, but these errors were encountered: