70 lines
2.6 KiB
JSON
70 lines
2.6 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "schema:Recipe",
|
|
"title": "Recipe",
|
|
"description": "A recipe. For dietary restrictions covered by the recipe, a few common restrictions are enumerated via [[suitableForDiet]]. The [[keywords]] property can also be used to add more detail.",
|
|
"type": "object",
|
|
"allOf": [
|
|
{
|
|
"description": "Instructions that explain how to achieve a result by performing a sequence of steps.",
|
|
"$ref": "schema:HowTo"
|
|
}
|
|
],
|
|
"properties": {
|
|
"cookTime": {
|
|
"description": "The time it takes to actually cook the dish, in [ISO 8601 duration format](http://en.wikipedia.org/wiki/ISO_8601).",
|
|
"type": "string",
|
|
"$comment": "https://schema.org/Duration"
|
|
},
|
|
"cookingMethod": {
|
|
"description": "The method of cooking, such as Frying, Steaming, ...",
|
|
"type": "string"
|
|
},
|
|
"ingredients": {
|
|
"description": "A single ingredient used in the recipe, e.g. sugar, flour or garlic.",
|
|
"oneOf": [
|
|
{ "type": "string" },
|
|
{ "type": "array", "items": { "type": "string" } }
|
|
]
|
|
},
|
|
"nutrition": {
|
|
"description": "Nutrition information about the recipe or menu item.",
|
|
"$ref": "schema:NutritionInformation"
|
|
},
|
|
"recipeCategory": {
|
|
"description": "The category of the recipe—for example, appetizer, entree, etc.",
|
|
"type": "string"
|
|
},
|
|
"recipeCuisine": {
|
|
"description": "The cuisine of the recipe (for example, French or Ethiopian).",
|
|
"type": "string"
|
|
},
|
|
"recipeIngredient": {
|
|
"description": "A single ingredient used in the recipe, e.g. sugar, flour or garlic.",
|
|
"oneOf": [
|
|
{ "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" }
|
|
]
|
|
},
|
|
"recipeYield": {
|
|
"description": "The quantity produced by the recipe (for example, number of people served, number of servings, etc).",
|
|
"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" } }
|
|
]
|
|
}
|
|
}
|
|
}
|