Skip to content

Commit 1241b5d

Browse files
authored
Merge pull request #1133 from appwrite/fix-multi-methods
Fix: methods being duplicated across services
2 parents 9b2cc9d + 35fa3e6 commit 1241b5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Spec/Swagger2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public function getMethods($service)
308308
if (!empty($method['x-appwrite']['methods'] ?? [])) {
309309
foreach ($method['x-appwrite']['methods'] as $additionalMethod) {
310310
// has multiple namespaced methods!
311-
$targetNamespace = $this->getTargetNamespace($additionalMethod, $service);
311+
$targetNamespace = $additionalMethod['namespace'] ?? null;
312312

313313
if ($targetNamespace === $service) {
314314
$list[] = $this->handleAdditionalMethods($methodName, $pathName, $method, $additionalMethod);

0 commit comments

Comments
 (0)