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 e8adb60 commit c406dc5Copy full SHA for c406dc5
lib/utils/spec-manager.ts
@@ -163,6 +163,12 @@ export class SpecManager {
163
164
let operationParamsPtr = JsonPointer.join(operationPtr, ['parameters']);
165
let operationParams:SwaggerParameter[] = this.byPointer(operationParamsPtr) || [];
166
+
167
+ const operationParamNames = {};
168
+ operationParams.forEach(param => operationParamNames[param.name] = true);
169
170
+ // filter out path params overriden by operation ones with the same name
171
+ pathParams = pathParams.filter(pathParam => !operationParamNames[pathParam.name]);
172
pathParams = injectPointers(pathParams, pathParamsPtr);
173
operationParams = injectPointers(operationParams, operationParamsPtr);
174
0 commit comments