【发布时间】:2015-12-24 13:33:02
【问题描述】:
我正在使用AggregateRating markup 将结构化数据实现到应用程序中。问题是当出现 0 个评级时,评级值为空。使用 Google 结构化数据测试工具时出现以下错误。
字段 ratingValue 不能为空。
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<meta itemprop="reviewCount" content="0">
<meta itemprop="ratingValue" content="">
...
</div>
该应用使用默认的 1 到 5 评分等级。
当ratingValue 为空时,是否可以传递一个符合 Schema.org 的默认值?为了避免错误,我不想在秤上传递任意数字...
【问题讨论】:
标签: html schema.org microdata google-rich-snippets