| 513 | } |
| 514 | |
| 515 | function 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 | |
| 536 | function deparameterisePath(s){ |
| 537 | return s |