mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 10:33:44 +03:00
parent
e8adb605c3
commit
c406dc5409
|
@ -163,6 +163,12 @@ export class SpecManager {
|
|||
|
||||
let operationParamsPtr = JsonPointer.join(operationPtr, ['parameters']);
|
||||
let operationParams:SwaggerParameter[] = this.byPointer(operationParamsPtr) || [];
|
||||
|
||||
const operationParamNames = {};
|
||||
operationParams.forEach(param => operationParamNames[param.name] = true);
|
||||
|
||||
// filter out path params overriden by operation ones with the same name
|
||||
pathParams = pathParams.filter(pathParam => !operationParamNames[pathParam.name]);
|
||||
pathParams = injectPointers(pathParams, pathParamsPtr);
|
||||
operationParams = injectPointers(operationParams, operationParamsPtr);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user