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

Updating to z-schema 3.0.0 #8

Merged
merged 1 commit into from
Sep 19, 2014
Merged

Updating to z-schema 3.0.0 #8

merged 1 commit into from
Sep 19, 2014

Conversation

dschenkelman
Copy link
Contributor

  1. Adapts to new synchronous model for compilation and validation.
  2. Using new api for validator.getLastErrors() instead of validator.getLastError().errors.
  3. All schemas are validated the first time, not just compiled.

Instead of doing the last one we could avoid that and just use the new __validated and __compiled flags from z-schema. That would mean removing the test for failure 'should return an error if unable to compile routes'.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.41%) when pulling b02bc98 on dschenkelman:zschema3 into 59bb9b6 on mac-:master.

"underscore": "1.x.x",
"hoek": "2.x.x"
},
"underscore": "1.x.x",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you be willing to fix the indentation to be consistent with the rest of the file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, sorry about that. Looked good locally.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.41%) when pulling 11d6ff9 on dschenkelman:zschema3 into 59bb9b6 on mac-:master.

@mac-
Copy link
Owner

mac- commented Sep 19, 2014

Everything looks great! 👍 I'll get this merged and then I'll publish a new version shortly

mac- added a commit that referenced this pull request Sep 19, 2014
@mac- mac- merged commit e18c7bd into mac-:master Sep 19, 2014
@mac- mac- mentioned this pull request Sep 19, 2014
@dschenkelman dschenkelman deleted the zschema3 branch October 1, 2014 21:19
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.

None yet

3 participants