feat: whole bunch of shit
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@@ -25,6 +25,10 @@
|
||||
- path: prepTime
|
||||
- path: cookTime
|
||||
- path: recipeYield
|
||||
- path: cookingMethod
|
||||
- path: nutrition
|
||||
- path: recipeCategory
|
||||
- path: suitableForDiet
|
||||
}
|
||||
---
|
||||
|
||||
|
@@ -4,7 +4,5 @@
|
||||
codec: yaml
|
||||
fields:
|
||||
- path: "@type"
|
||||
codec: const
|
||||
value: Recipe
|
||||
}
|
||||
---
|
||||
|
Reference in New Issue
Block a user