SuperRefine being executed on invalid data #1253
ali-idrizi
started this conversation in
General
Replies: 1 comment 1 reply
-
|
The The The first example parse successfully the This does not happens on your second example, simply because |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Using version
3.17.3, considering:I am getting the error "superRefine error" when
nameis'', but not whennameisundefined.validator.parse({name: ''})returns:However when the name is not provided at all, so
validator.parse({}), I get:As you can see the first example run the
superRefine, while the second one did not. Is this intended? It doesn't seems consistent. I read the readme and there is no mention on what conditionsuperRefineexecutes. I would likesuperRefinenot to execute at all when the data isn't parsed successfully, is there an easy way to accomplish this?Beta Was this translation helpful? Give feedback.
All reactions