I'm using the web auto extractor to retrieve recipes embedded as microdata. Unfortunately, the extractor is not extracting the ingridient list as an array. Instead the ingridients replace each other in the object so that only the last ingridient remains.
Example:
<ul class="ingredientList">`
<li itemprop="ingredients">½ cup butter</li>`
<li itemprop="ingredients">½ cup powdered sugar</li>`
<li itemprop="ingredients">½ cup chocolate chips</li>`
</ul>
The web auto extractor only extracts:
{ ..., ingedients : "½ cup chocolate chips", ...}
Instead of:
{ ..., ingedients : ["½ cup butter","½ cup powdered sugar","½ cup chocolate chips"], ...}
An example page with recipe microdata can be found here: getmecooking.com
Is this behavior by design?
The official schema.org Recipe example allows this kind of multi declaration of ingridients.
I assumed all lists would follow the ItemList schema. Looking at the case you've provided, I see it's not really the case. It must be fixed. I'll review your PR and get back to you. Thanks.
I'm using the web auto extractor to retrieve recipes embedded as microdata. Unfortunately, the extractor is not extracting the ingridient list as an array. Instead the ingridients replace each other in the object so that only the last ingridient remains.
Example:
The web auto extractor only extracts:
{ ..., ingedients : "½ cup chocolate chips", ...}
Instead of:{ ..., ingedients : ["½ cup butter","½ cup powdered sugar","½ cup chocolate chips"], ...}
An example page with recipe microdata can be found here: getmecooking.com
Is this behavior by design?
The official schema.org Recipe example allows this kind of multi declaration of ingridients.