MCPcopy Create free account
hub / github.com/APIs-guru/aws2openapi / postProcess

Function postProcess

index.js:515–534  ·  view source on GitHub ↗
(openapi,options)

Source from the content-addressed store, hash-verified

513}
514
515function postProcess(openapi,options){
516 Object.keys(openapi.paths).forEach(function(action){
517 if (action.parameters) {
518 action.parameters = _.uniqWith(action.parameters,isEqualParameter);
519 }
520
521 if (options.waiters) {
522 for (var w in options.waiters.waiters) {
523 var waiter = options.waiters.waiters[w];
524 if (waiter.operation == (action['x-aws-operation-name'] || action.operationId)) {
525 if (!action["x-waiters"]) {
526 action["x-waiters"] = [];
527 }
528 action["x-waiters"].push(waiter);
529 }
530 }
531 }
532
533 });
534}
535
536function deparameterisePath(s){
537 return s

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected