Skip to content

Commit 048d535

Browse files
committed
fix: correct HealthCheckResponse status field type
Changed status from str to int to match actual API response. **Test Results:** - ✅ get_health() returns HealthCheckResponse correctly - ✅ get_cdn() returns CDNResponse correctly - ✅ get_demand() returns DemandResponse correctly - ✅ get_demand_stream() returns List[InitialDemandOutturn] correctly All manually created models validated against real API responses.
1 parent 0a0d321 commit 048d535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elexon_bmrs/untyped_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class HealthCheckResponse(BaseModel):
2424
"""Response from /health endpoint."""
2525
model_config = ConfigDict(extra='allow')
2626

27-
status: str
27+
status: int # Status code (e.g., 2 for healthy)
2828
total_duration: Optional[str] = Field(alias="totalDuration", default=None)
2929
entries: Optional[Dict[str, Any]] = None
3030

0 commit comments

Comments
 (0)