You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to import recipes using JSON-LD. I am not able to import step name or add sections to ingredients or steps, as these elements are ignored. I've compared my JSON to recipes created in the UI and it matches up and I have also verified that the JSON conforms to the Schema.org/Recipe
Recipes created with the UI put the step name in the summary field of the step. I've placed my step names in the summary field in the JSON-LD which is a valid property per the schema, but it is not imported and the steps are just numbered after importing.
By looking at UI created recipes, I find that sections are implemented with the 'title' property in the recipeInstructions list, which isn't a part of the schema.org/Recipe schema, and adding title to steps does not create sections.
What am I missing here? I just want to be able to create the recipe with step names, and in some cases sections, all from the JSON-LD.
Here is my test json:
{
"@context": "https://schema.org",
"@type": "Recipe",
"name": "Whole Wheat and Oat Flour Flatbread",
"recipeIngredient": [
"1 cup whole wheat flour",
"1 cup oat flour (you can make this by grinding rolled oats in a blender until fine)",
"1 teaspoon baking powder",
"1/2 teaspoon salt",
"2 tablespoons olive oil",
"3/4 cup warm water (more if needed)"
],
"recipeInstructions": [
{
"@type": "HowToStep",
"summary": "Mix Dry Ingredients",
"title":"Dry Ingredients",
"text": "In a large bowl, whisk together the whole wheat flour, oat flour, baking powder, and salt."
},
{
"@type": "HowToStep",
"summary": "Add Oil and Water",
"text": "Add the olive oil and gradually mix in the warm water. Stir until the dough begins to come together; you might need a bit more water if the dough seems too dry."
},
{
"@type": "HowToStep",
"title:":"Knead and Rest",
"summary": "Knead the Dough",
"text": "Turn the dough onto a floured surface (using either whole wheat or oat flour). Knead for about 3-5 minutes until the dough is smooth and pliable."
},
{
"@type": "HowToStep",
"summary": "Rest the Dough",
"text": "Cover the dough with a clean kitchen towel and let it rest for about 30 minutes at room temperature. This allows the flours to hydrate and the gluten to relax, making the dough easier to roll out."
},
{
"@type": "HowToStep",
"summary": "Divide and Shape",
"text": "After resting, divide the dough into 6 equal pieces. Roll each piece into a ball, then flatten into a disc. Using a rolling pin, roll out each disc into a thin circle about 8 inches in diameter."
},
{
"@type": "HowToStep",
"summary": "Cook the Flatbread",
"text": "Heat a large skillet (cast iron works well) over medium-high heat. Once hot, place one flatbread in the skillet. Cook for about 2-3 minutes on each side or until it has nice brown spots and appears dry."
}
],
"description": "",
"yield": ""
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm attempting to import recipes using JSON-LD. I am not able to import step name or add sections to ingredients or steps, as these elements are ignored. I've compared my JSON to recipes created in the UI and it matches up and I have also verified that the JSON conforms to the Schema.org/Recipe
Recipes created with the UI put the step name in the summary field of the step. I've placed my step names in the summary field in the JSON-LD which is a valid property per the schema, but it is not imported and the steps are just numbered after importing.
By looking at UI created recipes, I find that sections are implemented with the 'title' property in the recipeInstructions list, which isn't a part of the schema.org/Recipe schema, and adding title to steps does not create sections.
What am I missing here? I just want to be able to create the recipe with step names, and in some cases sections, all from the JSON-LD.
Here is my test json:
Beta Was this translation helpful? Give feedback.
All reactions