feat: whole bunch of shit

This commit is contained in:
Max Richter
2025-08-17 16:35:52 +02:00
parent 69c2550f44
commit b3c01bb43d
36 changed files with 878 additions and 12 deletions

View File

@@ -23,8 +23,15 @@
"ingredients": {
"description": "A single ingredient used in the recipe, e.g. sugar, flour or garlic.",
"oneOf": [
{ "type": "string" },
{ "type": "array", "items": { "type": "string" } }
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"nutrition": {
@@ -42,27 +49,54 @@
"recipeIngredient": {
"description": "A single ingredient used in the recipe, e.g. sugar, flour or garlic.",
"oneOf": [
{ "type": "string" },
{ "type": "array", "items": { "type": "string" } }
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"recipeInstructions": {
"description": "A step in making the recipe, in the form of a single item (document, video, etc.) or an ordered list with HowToStep and/or HowToSection items.",
"anyOf": [
{ "type": "string" },
{ "$ref": "schema:CreativeWork" },
{ "$ref": "schema:ItemList" }
{
"type": "string"
},
{
"$ref": "schema:CreativeWork"
},
{
"$ref": "schema:ItemList"
}
]
},
"recipeYield": {
"description": "The quantity produced by the recipe (for example, number of people served, number of servings, etc).",
"anyOf": [{ "type": "string" }, { "$ref": "schema:QuantitativeValue" }]
"anyOf": [
{
"type": "string"
},
{
"$ref": "schema:QuantitativeValue"
}
]
},
"suitableForDiet": {
"description": "Indicates a dietary restriction or guideline for which this recipe or menu item is suitable, e.g. diabetic, halal etc.",
"oneOf": [
{ "$ref": "schema:RestrictedDiet" },
{ "type": "array", "items": { "$ref": "schema:RestrictedDiet" } }
{
"$ref": "schema:RestrictedDiet"
},
{
"type": "array",
"items": {
"$ref": "schema:RestrictedDiet"
}
}
]
}
}

View File

@@ -25,6 +25,10 @@
- path: prepTime
- path: cookTime
- path: recipeYield
- path: cookingMethod
- path: nutrition
- path: recipeCategory
- path: suitableForDiet
}
---

View File

@@ -4,7 +4,5 @@
codec: yaml
fields:
- path: "@type"
codec: const
value: Recipe
}
---