Skip to content

Commit 1ab3a80

Browse files
Change to methods
1 parent 48f32cb commit 1ab3a80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Spec/Swagger2.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,12 @@ public function getMethods($service)
290290
continue;
291291
}
292292

293-
if (empty($method['x-appwrite']['additional-methods'] ?? [])) {
293+
if (empty($method['x-appwrite']['methods'] ?? [])) {
294294
$list[] = $this->parseMethod($methodName, $pathName, $method);
295295
continue;
296296
}
297297

298-
foreach ($method['x-appwrite']['additional-methods'] as $additionalMethod) {
298+
foreach ($method['x-appwrite']['methods'] as $additionalMethod) {
299299
$duplicatedMethod = $method;
300300
$duplicatedMethod['x-appwrite']['method'] = $additionalMethod['name'];
301301

@@ -348,7 +348,7 @@ public function getMethods($service)
348348

349349
$handleParams($duplicatedMethod['parameters']);
350350

351-
// Overwrite description and name if multiplex has one
351+
// Overwrite description and name if method has one
352352
if (!empty($additionalMethod['name'])) {
353353
$duplicatedMethod['summary'] = $additionalMethod['name'];
354354
}

0 commit comments

Comments
 (0)