-
Notifications
You must be signed in to change notification settings - Fork 57
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
V2.x #72
V2.x #72
Conversation
@@ -0,0 +1,101 @@ | |||
//const Fs = require('fs'); |
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.
lingering comment
|
||
return Promise.all([ apiResolver, fileResolver, validatorResolver ]).then(resolved => { | ||
let routes = []; | ||
let [ api, files, validators ] = resolved; |
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.
Guessing order is maintained from Promise.all
?
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.
yes
} else { | ||
//If handlers options is not set, use the default dir name `handlers` (only if the dir exists). | ||
let defaultPath = Path.join(basedir, './handlers'); | ||
////For a one time lookup and invocation during configuration, |
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.
extra //
Can this be merged? Because the target is a new branch altogether - |
merging this PR to |
is-my-json-valid
validator by default, instead ofenjoi
. (Option to usejoi
schema - useful for hapi integration).swagvali
module to build validators.