Skip to content

Commit 1882306

Browse files
fix: narrow HealthResponse.status to Literal["ok", "degraded"]
Server only ever emits one of these two values (ok when redis+db are both reachable, degraded when either ping fails). Reference: apps/api/src/routes/health/index.ts:21 in sgai-api-v2-clean. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 752a951 commit 1882306

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/scrapegraph_py/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ class CreditsResponse(ResponseModel):
472472

473473

474474
class HealthResponse(ResponseModel):
475-
status: str
475+
status: Literal["ok", "degraded"]
476476
uptime: int
477477

478478
model_config = ConfigDict(extra="allow")

0 commit comments

Comments
 (0)