Skip to content

Commit ba4ff59

Browse files
tangmc0210claude
andcommitted
docs(timetable): note the canonical error envelope and the #1014 follow-up
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012t4BD5H1P5nn2zF7oU6q9e
1 parent eea896a commit ba4ff59

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

timetable/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,12 @@ yields no blocks, answer 400 `PARSE_FAILED` and leave existing entries
396396
untouched (a failed `ImportLog` is written); a dry run on unrecognised text
397397
answers 200 `{format: 'unknown', blocks: []}`. Hidden entries are excluded
398398
from `week/` and from the ICS feed but still listed by `entries/` so they can
399-
be un-hidden. Every error body is `{code, message}` (validation errors add
400-
`errors`).
399+
be un-hidden. Every error body is `{code, message}`; validation errors add
400+
`errors: {field: [{code, message}]}` — the same item shape as the
401+
platform-wide envelope of `api/exceptions.py` (YPPF PR #1014) and of the
402+
mini-program's unified `RequestError` (YPPF-mini PR #10). Once #1014 is
403+
merged these modules should adopt `StandardizedExceptionHandlerMixin` /
404+
`APIError` instead of their local mixins (mechanical change; codes stay).
401405
402406
```ts
403407
interface Term { code: string; name: string; week1_monday: string; total_weeks: number;

0 commit comments

Comments
 (0)