Skip to content

Commit 35fa3e6

Browse files
committed
fix: methods being duplicated across services.
1 parent df7ba56 commit 35fa3e6

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)