codex/public-api-docs #38

Merged
Twyco merged 6 commits from codex/public-api-docs into main 2026-04-24 09:11:49 +00:00
2 changed files with 6 additions and 0 deletions
Showing only changes of commit a6a4615ad5 - Show all commits
+5
View File
@@ -112,6 +112,11 @@ return [
*/
'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.
*/
@@ -10,6 +10,7 @@ class PublicApiDocumentationTest extends TestCase
{
$this->get('/api/docs')
->assertOk()
->assertSee('"hideClientButton":true', false)
Outdated
Review

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.

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.
->assertSee('"mcp":{"disabled":true}', false);
}