diff --git a/src/Spec/Swagger2.php b/src/Spec/Swagger2.php index ae7f49f04..6f69aceb8 100644 --- a/src/Spec/Swagger2.php +++ b/src/Spec/Swagger2.php @@ -308,7 +308,7 @@ public function getMethods($service) if (!empty($method['x-appwrite']['methods'] ?? [])) { foreach ($method['x-appwrite']['methods'] as $additionalMethod) { // has multiple namespaced methods! - $targetNamespace = $this->getTargetNamespace($additionalMethod, $service); + $targetNamespace = $additionalMethod['namespace'] ?? null; if ($targetNamespace === $service) { $list[] = $this->handleAdditionalMethods($methodName, $pathName, $method, $additionalMethod);