Merge pull request #11821 from appwrite/chore-public-project-api

Chore: Mark project response format sub-formats as public
This commit is contained in:
Matej Bačo
2026-04-08 12:32:58 +02:00
committed by GitHub
3 changed files with 4 additions and 14 deletions
@@ -7,11 +7,6 @@ use Appwrite\Utopia\Response\Model;
class AuthProvider extends Model
{
/**
* @var bool
*/
protected bool $public = false;
public function __construct()
{
$this
@@ -7,11 +7,6 @@ use Appwrite\Utopia\Response\Model;
class DevKey extends Model
{
/**
* @var bool
*/
protected bool $public = false;
public function __construct()
{
$this
@@ -5305,7 +5305,7 @@ class RealtimeCustomClientTest extends Scope
$actorsId = $actors['body']['$id'];
//Test Attribute Create
$scoreAttr = $this->client->call(Client::METHOD_POST, '/databases/' . $databaseId . '/collections/' . $actorsId . '/attributes/integer', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
@@ -5350,7 +5350,7 @@ class RealtimeCustomClientTest extends Scope
], $this->getHeaders()), [
'value' => 5
]);
$this->assertEquals(200, $increment['headers']['status-code']);
$response = json_decode($client->receive(), true);
@@ -5361,7 +5361,7 @@ class RealtimeCustomClientTest extends Scope
$this->assertArrayHasKey('timestamp', $response['data']);
$this->assertCount(8, $response['data']['channels']);
$this->assertContains("databases.{$databaseId}.collections.{$actorsId}.documents.{$documentId}.update", $response['data']['events']);
$this->assertNotEmpty($response['data']['payload']);
$this->assertIsArray($response['data']['payload']);
$this->assertArrayHasKey('$id', $response['data']['payload']);
@@ -5394,7 +5394,7 @@ class RealtimeCustomClientTest extends Scope
$this->assertArrayHasKey('timestamp', $response['data']);
$this->assertCount(8, $response['data']['channels']);
$this->assertContains("databases.{$databaseId}.collections.{$actorsId}.documents.{$documentId}.update", $response['data']['events']);
$this->assertNotEmpty($response['data']['payload']);
$this->assertIsArray($response['data']['payload']);
$this->assertArrayHasKey('$id', $response['data']['payload']);