dietary@1
Dietary
Resources
Documentation
dietary@1
Purpose
The dietary@1 stack enables recipes to declare nutritional information, dietary classifications, and allergen information.
Adds
- Top-level
dietaryobject withbasisfield (perServing or perRecipe). - Optional
calories,macros(protein, fat, carbohydrates),diets, andallergensfields. - At least one of calories, macros, diets, or allergens must be present.
Requires
- None
Semantics
- MUST: The
dietaryobject must include abasisfield. - MUST: At least one of
calories,macros,diets, orallergensmust be present. - NOTE: Dietary tags and allergen lists are freeform strings in v1 (no controlled vocabulary).
Composition Notes
- This stack is monotonic: it adds requirements or fields without removing expressiveness.
- Interaction: No dependencies on other stacks. Can be combined with any other stack.