schemaValidator vs onValidate #1136
-
Hi, just a quick question. Since I am just wondering, since in my project I am trying to simplify things for the devs, I was asking myself this. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @simplecommerce. What kind of We may want to sail off this idea in the next versions, but for now, I don't see it as a problem. In the end, most users never use |
Beta Was this translation helpful? Give feedback.
Hi @simplecommerce. What kind of
schemaValidator
you have in mind? The one in GraphQL or JSON Schema bridge? If so, the only reason why I'd still leave them separated is convenience. The bridge always defines some validator, and it can be further extended in a form.We may want to sail off this idea in the next versions, but for now, I don't see it as a problem. In the end, most users never use
onValidate
nor define the validator themselves (i.e., their bridge does it automatically, or they useajv
or other library).