updated working options

This commit is contained in:
pavanteja-potnuru
2018-09-11 12:06:32 +05:30
parent 8645a0b391
commit dad5809286

View File

@@ -785,6 +785,9 @@ module.exports = {
pathVarArray = this.convertPathVariables('root', [], pathVariables);
reqName = this.options.requestName === 'url' ? (displayUrl || baseUrl) :
operationItem.properties[this.options.requestName];
if (!reqName) {
throw new Error(`requestName (${this.options.requestName}) in options is invalid`);
}
// handling authentication here (for http type only)
authHelper = this.getAuthHelper(openapi, operationItem.properties.security);