feat(meal-planner): structured output for get_meal_plan (v0.10.1)
- Map mplistinterval response to clean JSON list (id, date, type, name, recipe_id, can_update, can_delete) — no more raw dump - SPEC.md: document verified mplistinterval response structure - Fix two pre-existing ruff SIM warnings (SIM102, SIM105) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -159,10 +159,8 @@ def build_create_params(
|
||||
params["recipe.serves"] = str(serves)
|
||||
if url is not None:
|
||||
params["recipe.url"] = url
|
||||
if category_ids is not None:
|
||||
# For create: empty list just means no categories (don't send parameter).
|
||||
if len(category_ids) > 0:
|
||||
params["recipe.recipeCategoryIdList"] = category_ids
|
||||
if category_ids is not None and len(category_ids) > 0:
|
||||
params["recipe.recipeCategoryIdList"] = category_ids
|
||||
return params
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user