Skip to content

Commit 4076325

Browse files
Use new multiplexing format
1 parent 11e2650 commit 4076325

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Spec/Swagger2.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ public function getMethods($service)
289289
if (isset($method['tags']) && is_array($method['tags']) && in_array($service, $method['tags'])) {
290290
// Handle method multiplexing
291291
if (!empty($method['x-appwrite']['multiplex'] ?? [])) {
292-
foreach ($method['x-appwrite']['multiplex'] as $methodName => $multiplex) {
292+
foreach ($method['x-appwrite']['multiplex'] as $multiplex) {
293293
$multiplexMethod = $method;
294-
$multiplexMethod['x-appwrite']['method'] = $methodName;
294+
$multiplexMethod['x-appwrite']['method'] = $multiplex['name'];
295295

296296
// Update Response
297297
$responses = $multiplexMethod['responses'];

0 commit comments

Comments
 (0)