Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made sure all validate methods go through the same call chain #338

Merged
merged 1 commit into from
Jul 20, 2016

Conversation

iainbeeston
Copy link
Contributor

Right now when a schema is validated, we perform a different call path
depending on which of the validate methods is called. Schema validation
has it's own path too.

I've changed this so everything is validated via
JSON::Validator#validate!, all other validate methods ultimately call
that. This means that the varied validate class methods on Validator
are simplified and just add or remove validation options.

Right now when a schema is validated, we perform a different call path
depending on which of the validate methods is called. Schema validation
has it's own path too.

I've changed this so everything is validated via
`JSON::Validator#validate!`, all other validate methods ultimately call
that. This means that the varied validate class methods on `Validator`
are simplified and just add or remove validation options.
@RST-J
Copy link
Contributor

RST-J commented Jul 8, 2016

👍 +2 actually, I like tidy code.

@iainbeeston iainbeeston merged commit ceae5c8 into voxpupuli:master Jul 20, 2016
@iainbeeston iainbeeston deleted the unify-validate-methods branch July 20, 2016 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants