We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 953152d commit d1b2c42Copy full SHA for d1b2c42
lib/types/operation.js
@@ -483,13 +483,7 @@ Operation.prototype.urlify = function (args) {
483
value = this.encodePathCollection(param.collectionFormat, param.name, value);
484
} else {
485
486
- if(param['x-escape'] === false ) {
487
- value = value.split('/')
488
- .map(function encodePathPart(part) {
489
- return encodeURIComponent(part);
490
- })
491
- .join('/');
492
- } else {
+ if((typeof(param['x-escape']) === 'undefined') || (param['x-escape'] === true)) {
493
value = this.encodePathParam(value);
494
}
495
0 commit comments