With the support of the new async and await feature in ES2017, I can write a function:
async function fetchData(url) {..}
swagger-tools doesn't support to use such an async function as a handler, due to this issue:
https://github.com/lodash/lodash/issues/3603
All async function would be skipped because _.isFunction used by swagger-router.js failed to recognize them.
With the support of the new async and await feature in ES2017, I can write a function:
async function fetchData(url) {..}
swagger-tools doesn't support to use such an async function as a handler, due to this issue: https://github.com/lodash/lodash/issues/3603All async function would be skipped because _.isFunction used by swagger-router.js failed to recognize them.