JobPosting架构问题:Number不是baseSalary属性的已知有效目标类型

对于schema.org上的新JobPosting列表,特别是baseSalary属性的预期类型,我有些困惑。

文档说Number是三种预期类型之一:

schema JobPosting SS

但是当我在Google结构化数据测试工具上测试页面时,会收到以下警告:

Google warning

声明“ Number不是baseSalary属性的已知有效目标类型。”

代码中没有什么奇怪的,只是baseSalary itemprop的简单跨度:

<span itemprop="baseSalary">36000</span>

我是误解了还是错过了什么?

欢呼

a374896 回答:JobPosting架构问题:Number不是baseSalary属性的已知有效目标类型

这不是不是 schema.org错误。此问题专门与Google验证程序和丰富网页摘要推荐的属性/准则有关(我同意错误消息不会提供太多信息)。

要获得丰富的结果-Google必需MonetaryAmount作为baseSalary的类型(不是数字)

"baseSalary": {
  "@type": "MonetaryAmount","currency": "USD","value": {
    "@type": "QuantitativeValue","value": 40.00,"unitText": "HOUR"
  }
}

文档和示例: https://developers.google.com/search/docs/data-types/job-posting enter image description here

enter image description here

本文链接:https://www.f2er.com/2470620.html

大家都在问