Hide assignee metadata when no visible assigned tickets exist
This commit is contained in:
@@ -83,5 +83,13 @@ class OpenApiDocumentationTest extends TestCase
|
||||
$this->assertArrayHasKey('UserGitConnectionRequest', $document['components']['schemas']);
|
||||
$this->assertArrayHasKey('AssignedTicketsPayloadEnvelope', $document['components']['schemas']);
|
||||
$this->assertArrayHasKey('AssignedTicketsProjectGroup', $document['components']['schemas']);
|
||||
|
||||
$assigneeSchema = $document['components']['schemas']['AssignedTicketsPayloadEnvelope']['properties']['meta']['properties']['assignee'] ?? null;
|
||||
|
||||
$this->assertIsArray($assigneeSchema);
|
||||
$this->assertSame([
|
||||
['$ref' => '#/components/schemas/User'],
|
||||
['type' => 'null'],
|
||||
], $assigneeSchema['anyOf'] ?? null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user