Skip to content

schemaValidator vs onValidate #1136

Answered by radekmie
simplecommerce asked this question in Q&A
Discussion options

You must be logged in to vote

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 use ajv or other library).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@simplecommerce
Comment options

@radekmie
Comment options

Answer selected by radekmie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants