From 274aaeb0b6bfba609a218119afa6bf710bb77f65 Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Tue, 24 Feb 2026 08:18:43 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20Mealie=20PATCH=20500=20=E2=80=94=20instr?= =?UTF-8?q?uctions=20need=20title=20and=20ingredientReferences?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mealie validates that recipeInstructions have title and ingredientReferences fields. Also use dashed UUID format. Co-Authored-By: Claude Opus 4.6 --- app/mealie.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/mealie.py b/app/mealie.py index db6762b..ca14758 100644 --- a/app/mealie.py +++ b/app/mealie.py @@ -69,7 +69,7 @@ class MealieClient: ingredients = [] for line in recipe.get("ingredients", []): ingredients.append({ - "referenceId": uuid.uuid4().hex, + "referenceId": str(uuid.uuid4()), "note": line, "isFood": False, "disableAmount": True, @@ -78,8 +78,10 @@ class MealieClient: instructions = [] for text in recipe.get("instructions", []): instructions.append({ - "id": uuid.uuid4().hex, + "id": str(uuid.uuid4()), + "title": "", "text": text, + "ingredientReferences": [], }) return {