Handle nullable Gitea repository descriptions in context endpoint #54

Closed
opened 2026-08-06 00:17:03 +00:00 by rockachopa · 0 comments
Member

Evidence

A Gitea repository payload with description: null causes GET /api/v1/context to raise a Pydantic ValidationError instead of returning dashboard context. Reproduced against current main by invoking context() with a real-shaped repository response.

Acceptance criteria

  • Normalize a nullable repository description to an empty string.
  • Preserve the repository in the context response.
  • Cover the behavior with a regression test.
## Evidence A Gitea repository payload with `description: null` causes `GET /api/v1/context` to raise a Pydantic `ValidationError` instead of returning dashboard context. Reproduced against current `main` by invoking `context()` with a real-shaped repository response. ## Acceptance criteria - Normalize a nullable repository description to an empty string. - Preserve the repository in the context response. - Cover the behavior with a regression test.
timmy was assigned by rockachopa 2026-08-06 00:17:03 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#54
No description provided.