Revert d4d7d0bef5
This commit is contained in:
@ -106,6 +106,15 @@ function generate (spec, common) {
|
|||||||
options = {}
|
options = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// promises support
|
||||||
|
if (callback == null) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
${safeWords(name)}(params, options, (err, body) => {
|
||||||
|
err ? reject(err) : resolve(body)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
${genRequiredChecks()}
|
${genRequiredChecks()}
|
||||||
|
|
||||||
${genUrlValidation(paths, api)}
|
${genUrlValidation(paths, api)}
|
||||||
|
|||||||
Reference in New Issue
Block a user