Repository navigation
Description
What happened
GET /api/v2/admin/dashboard/layout answers {"layout":null,"updated_at":null} for an administrator who has never saved a layout. The operation's own description says "Null means retain the local/default arrangement", but the AdminDashboardLayout schema declares layout as a non-nullable object and updated_at as a non-nullable string, and both are required. The response therefore fails its own schema, and a client generated from the v2 document fails to decode it (or types the members as never null).
Steps to reproduce
- On a Silo dev deployment, sign in as an administrator who has not saved a dashboard layout.
GET /api/v2/admin/dashboard/layout. The body is{"layout":null,"updated_at":null}.- Validate the body against
components.schemas.AdminDashboardLayoutinGET /api/v2/openapi.json. It fails:at '/layout': got null, want objectandat '/updated_at': got null, want string.
Expected behavior
The schema marks both members nullable, matching the documented "null means default" behavior, so the response validates and generated clients type them as optional.
Silo version / commit
main at d00462089.
Deployment
A Silo dev deployment (disposable sandbox).
Area
API
Clients affected
- Web UI
- Android
- iOS/tvOS/macOS
- Jellyfin-compat client (Infuse, Findroid, ...)
- Other/not client-specific
The web admin dashboard passes both values through and shows the default arrangement today. A client generated from the schema treats both members as never null.
Relevant logs
no logs availableTechnical notes
internal/apiv2/admin_dashboard_layout.go:AdminDashboardLayout.Layout *DashboardLayoutDocumentandUpdatedAt *Instanthave nonullable:"true", andDashboardLayoutDocument.Schemareturns an object schema withoutNullable.- Making a response member nullable is a breaking change for
make verify-apiv2-contract(oasdiff), so it needs acontracts/api/v2/breaking-approvals.jsonentry while v2 is unlocked.
AI harness
Claude Code (running in T3 Code)
AI tool(s)
Claude Code, GitHub CLI
AI model(s)
claude-opus-5-5
AI involvement
AI-assisted
Independent or adversarial review
n/a
Confirmations
- I searched open and recently closed issues and pull requests, and this is not already reported
- I reproduced this myself on a real deployment
- Any logs provided are raw apart from marked redactions and are not AI-summarized; if none were available, I said so above
Source: found while verifying the fix for #2903
Activity
fix(apiv2): mark the unsaved dashboard layout members nullable (Silo-…
chore(apiv2): clear breaking-change approvals that have merged
feat(sections): send title keys for server-written section titles (#3727