feat: add impersonation keys to LOCATION methods in OpenAPI3 spec

This commit is contained in:
harsh mahajan committed 2026-06-05 13:43:15 +05:30
1 parent 2056059f89
commit 9aef57f359
1 file changed
+10
@@ -384,6 +384,16 @@ class OpenAPI3 extends Format
}
$temp['x-appwrite']['auth'] = array_slice($securities, 0, $this->authCount);
if ($sdk->getType() === MethodType::LOCATION) {
foreach (['ImpersonateUserId', 'ImpersonateUserEmail', 'ImpersonateUserPhone'] as $key) {
if (\array_key_exists($key, $this->keys)) {
$securities[$key] = [];
$temp['x-appwrite']['auth'][$key] = [];
}
}
}
$temp['security'][] = $securities;
}