codex/public-api-docs #38
@@ -112,6 +112,11 @@ return [
|
|||||||
*/
|
*/
|
||||||
'hideTestRequestButton' => true,
|
'hideTestRequestButton' => true,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether to show the API client button in the sidebar and modal.
|
||||||
|
*/
|
||||||
|
'hideClientButton' => true,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MCP will be introduced as a first-party KanbanGit feature later.
|
* MCP will be introduced as a first-party KanbanGit feature later.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ class PublicApiDocumentationTest extends TestCase
|
|||||||
{
|
{
|
||||||
$this->get('/api/docs')
|
$this->get('/api/docs')
|
||||||
->assertOk()
|
->assertOk()
|
||||||
|
->assertSee('"hideClientButton":true', false)
|
||||||
|
|
|||||||
->assertSee('"mcp":{"disabled":true}', false);
|
->assertSee('"mcp":{"disabled":true}', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user
Nit/Optional: These assertions depend on Scalar's exact minified JSON serialization (
"hideClientButton":true/"mcp":{"disabled":true}), which is brittle across package updates. Prefer asserting stable behavior (e.g., response OK plus the configured OpenAPI URL) instead of exact formatting.