简体   繁体   English

结构化数据测试工具

[英]Test tool for structured data

I'm getting errors while running the test tool for structured data. 运行结构化数据的测试工具时出现错误。 Finding no solution or explanation for what is wrong. 找不到解决方案或错误原因的解释。 Google presents errors in Swedish, not allowing me to google the issue nor are google giving any links to explain what is the problem. Google用瑞典语显示错误,不允许我用Google搜索问题,也不允许Google提供任何链接来解释问题所在。 I'm trying to add structured data to a website and include both offers and rating. 我正在尝试将结构化数据添加到网站,并同时包括报价和评分。 Once I try to run the snippet through the test tool Google says it can not normalize the value for the price. 一旦我尝试通过测试工具运行该代码段,Google便说无法将价格值标准化。 I have no idea what this means, and there is no information to be found on it either. 我不知道这意味着什么,也找不到任何信息。

This is what my script looks like: 这是我的脚本的样子:

 <script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "Product", "image": "https://www.test.com/bild.png", "name": "Produktnamn", "description": "Beskrivning.", "brand": { "@type": "Product", "name": "Företag" }, "aggregateRating": { "@type": "AggregateRating", "ratingValue": "15", "reviewCount": "3", "worstRating": "1", "bestRating": "5" }, "offers": { "@type": "Offer", "priceCurrency": "sek", "price": "519", "priceValidUntil": "2019-01-01", "itemCondition": "http://schema.org/NewCondition", "availability": "http://schema.org/InStock", "url": "https://www.test.com/produktsida" } } </script> 

You have used ratingValue as 15 which is outside the range you have defined for worstRating and bestRating . 您已使用ratingValue15 ,这超出了您为badRatingbestRating定义的范围。

Either your value should be corrected to fit between 1 and 5 or your range is wrong. 您的值应该被校正为介于1到5之间,或者您的范围是错误的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM