Summary
eightctl schedule list fails on GET /users/<userId>/temperature/schedules with a specialization validation error, even when using allowed specialization values.
Repro
eightctl schedule list -v
Actual
Request hits:
GET https://app-api.8slp.net/v1/users/<userId>/temperature/schedules?specialization=all
Response:
{
"status": 400,
"errors": {
"specialization": ["only 'pod|pillow|all' specialization allowed"]
}
}
This reproduces for specialization=pod, pillow, and all.
Expected
schedule list should return schedules (or empty list), not hard-fail.
Suggested Fix
- Keep requesting
specialization=all on /temperature/schedules.
- If API still returns this validation error, gracefully fallback to:
GET /household/users/<userId>/schedule
- Return empty schedules when both are unavailable, instead of aborting.
I have implemented and use this fix on a local fork, feel free to reference my implementation diff: https://gist.github.com/0xble/fb74b5b522bf1b9af986e81ff25c8ee4
Environment
- macOS (Apple Silicon)
eightctl 0.1.0-dev
Summary
eightctl schedule listfails onGET /users/<userId>/temperature/scheduleswith a specialization validation error, even when using allowed specialization values.Repro
Actual
Request hits:
Response:
{ "status": 400, "errors": { "specialization": ["only 'pod|pillow|all' specialization allowed"] } }This reproduces for
specialization=pod,pillow, andall.Expected
schedule listshould return schedules (or empty list), not hard-fail.Suggested Fix
specialization=allon/temperature/schedules.GET /household/users/<userId>/scheduleI have implemented and use this fix on a local fork, feel free to reference my implementation diff: https://gist.github.com/0xble/fb74b5b522bf1b9af986e81ff25c8ee4
Environment
eightctl 0.1.0-dev