Coverage for opt/mealie/lib/python3.12/site-packages/mealie/schema/recipe/recipe_step.py: 100%

13 statements  

« prev     ^ index     » next       coverage.py v7.10.6, created at 2025-11-25 15:32 +0000

1from uuid import UUID, uuid4 1a

2 

3from pydantic import UUID4, ConfigDict, Field 1a

4 

5from mealie.schema._mealie import MealieModel 1a

6 

7 

8class IngredientReferences(MealieModel): 1a

9 """ 

10 A list of ingredient references. 

11 """ 

12 

13 reference_id: UUID4 | None = None 1a

14 model_config = ConfigDict(from_attributes=True) 1a

15 

16 

17class RecipeStep(MealieModel): 1a

18 id: UUID | None = Field(default_factory=uuid4) 1a

19 title: str | None = "" # This is the section title!!! 1a

20 summary: str | None = "" 1a

21 text: str 1a

22 ingredient_references: list[IngredientReferences] = [] 1a

23 model_config = ConfigDict(from_attributes=True) 1a