mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Remove scopes spec override, now fixed at source in #11839
This commit is contained in:
@@ -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' => [
|
||||
|
||||
@@ -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']);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user