Skip to content

Commit e965ee0

Browse files
Merge pull request #89 from ScrapeGraphAI/fix/health-response-types
fix: drop non-existent services field from HealthResponse
2 parents 6a53676 + 1882306 commit e965ee0

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/scrapegraph_py/schemas.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -471,14 +471,8 @@ class CreditsResponse(ResponseModel):
471471
model_config = ConfigDict(extra="allow")
472472

473473

474-
class HealthServices(ResponseModel):
475-
redis: Literal["ok", "down"]
476-
db: Literal["ok", "down"]
477-
478-
479474
class HealthResponse(ResponseModel):
480-
status: str
475+
status: Literal["ok", "degraded"]
481476
uptime: int
482-
services: HealthServices | None = None
483477

484478
model_config = ConfigDict(extra="allow")

0 commit comments

Comments
 (0)