Replies: 2 comments
-
It would be great to have this feature, but probably as a separate helper from |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think this flow would be pretty okay, even if means, that the matcher runs twice. if(isMatching(obj)) return success(obj)
else return failure(matchDetails(obj, pattern)) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you want to use isMatching to validate external input (API, config file, ...), it would be useful to be able to give feedback about why the input was not acceptable.
Currently isMatching(...) only returns true or false, but it would be nice if it would return more info.
Does that seem like a good idea @gvergnaud?
Beta Was this translation helpful? Give feedback.
All reactions