-
Notifications
You must be signed in to change notification settings - Fork 421
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
Joi 16 Compatibility #617
Joi 16 Compatibility #617
Conversation
@Tornquist the unit test seem to pass. Is this ready for review? |
actually nm :) 13 of 198 tests failed. i'll try and take a peek. |
Hi everyone, love the fact you are upgrading this. I kinda need this for one of my projects as well. or just change these lines: lib/responses.js:97 I can have a look at the remaining failed tests if you want. |
@matejdr Just make a PR into my branch. |
awesome let's keep this going |
- forced a rule in one case as schema not supported in swagger - fixed one test for alternatives as the actual models are different
@Tornquist , can you give me write access to your repo: git@github.com:Tornquist/hapi-swagger.git I don't want to fork the repo for the purpose of a single commit. I fixed all the issues by the way, all tests pass. |
@matejdr I had missed that you put a PR up, for some reason I didn't get the notification. Thanks for resolving these! I'll review shortly. |
- fixed joi validation issues
All tests are working. The coverage dropping below 99% is causing travis to fail. Most of the lines reported as missed are required for the test suite to run successfully. A few are fallback cases for non-joi objects being sent in for validation. These blocks will be required again when hapi is not shipping a different joi version internally, but for now are not called. |
@Tornquist ready for review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. There is a coverage drop but I don't think it is worth holding up the release
@robmcguinness I believe it's about ready. I dropped the lab coverage threshold to To wrap this up for a final happy run, what are your thoughts on:
I am generally uncomfortable with removing/lowering checks, but I'm also not a fan of leaving them in as-if this was passing those marks. Ref: hapijs/boom#251 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just gave it all another once-over and I'm happy with where it is.
Summary
@hapi
dependencies to current version. Major change from Joi 15 to 16.