Mission Built

The MealStack Schema 0.9.3 · Field set

Portion

An ingredient and how much of it, on a plate.

One line of a plate: an ingredient and a quantity in the ingredient's own unit. The macros of a portion are the ingredient's per times the quantity, derived; a portion carries a copy of its ingredient so the plate reads the same after the ingredient changes.

Reused as

  • meal.portionsarrayWhat is on the plate, in order.

portion.* never appears at the top level; only nested.

Fields

  1. portion.id extended keyword

    A UUID for the line, so an edit can address one of two identical lines.

    Example5b2c0e5a-3b2f-4f3e-9c1a-1e2b3c4d5e6f

  2. portion.quantity core float required

    How much of the ingredient, in its own unit. Positive. Caps per unit above which a line is refused as not a plate: 2,000 g, 64 oz, 24 each, 8 cups, 16 tbsp, 24 tsp, 6 scoops, 6 packets, 6 bottles. A line over 1,500 kcal is refused whatever the unit.

    Example7.05

  3. portion.macros core object

    The ingredient's per times the quantity. Derived; a reader recomputes it.