Remove scopes spec override, now fixed at source in #11839

This commit is contained in:
Chirag Aggarwal
2026-04-13 10:33:46 +05:30
parent 035f6244e1
commit a6af609317
2 changed files with 0 additions and 13 deletions
@@ -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']);
}