fix(cron): enforce schedule in required schema properties to prevent validation failure - #37431
fix(cron): enforce schedule in required schema properties to prevent validation failure#37431AgatheBauer wants to merge 0 commit into
Conversation
|
Adding On The test's own docstring still says: "The schema intentionally does NOT promote schedule/prompt into the top-level required array because they're only mandatory for action=create, not for list/remove/pause/etc." — but the assertion was updated to expect the broken behavior without updating the docstring. The description-driven approach (flagging Additionally, the entire diff is CRLF line-ending noise (~88KB for a one-line semantic change). This suggests the file was edited on Windows without |
ef53711 to
04bb74c
Compare
|
Thank you for the feedback! You are completely right. Promoting |
This PR promotes
scheduleto the root-levelrequiredarray inCRONJOB_SCHEMAintools/cronjob_tools.pyand updatestests/cron/test_cronjob_schema.pyaccordingly.This prevents description-driven models (e.g. Grok) from omitting the required
scheduleargument duringaction=createcalls, fixing theschedule is required for createvalidation error.