From a6af6093171fdbab104fa0e899e41a19a52c45fe Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 13 Apr 2026 10:17:32 +0530 Subject: [PATCH] Remove scopes spec override, now fixed at source in #11839 --- src/Appwrite/SDK/Specification/Format.php | 9 --------- tests/unit/SDK/Specification/FormatTest.php | 4 ---- 2 files changed, 13 deletions(-) diff --git a/src/Appwrite/SDK/Specification/Format.php b/src/Appwrite/SDK/Specification/Format.php index 39fbd2883e..91b090a9f6 100644 --- a/src/Appwrite/SDK/Specification/Format.php +++ b/src/Appwrite/SDK/Specification/Format.php @@ -79,15 +79,6 @@ abstract class Format ]; private const array REQUEST_PARAMETER_OVERRIDES = [ - [ - 'namespace' => 'project', - 'methods' => [ - 'createKey', - 'updateKey', - ], - 'parameter' => 'scopes', - 'nullable' => false, - ], [ 'namespace' => 'project', 'methods' => [ diff --git a/tests/unit/SDK/Specification/FormatTest.php b/tests/unit/SDK/Specification/FormatTest.php index e21f2f3c43..f99b29bfe2 100644 --- a/tests/unit/SDK/Specification/FormatTest.php +++ b/tests/unit/SDK/Specification/FormatTest.php @@ -39,16 +39,12 @@ class FormatTest extends TestCase { $createWebPlatform = $this->format->requestParameterConfig('project', 'createWebPlatform', 'hostname', true, false, ''); $updateWebPlatform = $this->format->requestParameterConfig('project', 'updateWebPlatform', 'hostname', true, false, ''); - $createKey = $this->format->requestParameterConfig('project', 'createKey', 'scopes', false, true, null); - $updateKey = $this->format->requestParameterConfig('project', 'updateKey', 'scopes', false, true, null); $listPlatforms = $this->format->requestParameterConfig('project', 'listPlatforms', 'queries', true, false, []); $this->assertTrue($createWebPlatform['required']); $this->assertFalse($createWebPlatform['emitDefault']); $this->assertTrue($updateWebPlatform['required']); $this->assertFalse($updateWebPlatform['emitDefault']); - $this->assertFalse($createKey['nullable']); - $this->assertFalse($updateKey['nullable']); $this->assertTrue($listPlatforms['emitDefault']); }