在Google Structured Data Testing Tool上,我收到一条警告,提示您未在baseSalary
属性中输入值。
建议使用
value
字段。请提供一个值(如果有)。
但是,我添加了一个值。
{
"@context": "http://schema.org",
"@type": "JobPosting",
"hiringOrganization": "Google",
"validThrough": "2018-12-31T00:00",
"baseSalary": {
"@type": "MonetaryAmount",
"currency": "USD",
"value": {
"@type": "QuantitativeValue",
"minValue": 40.00,
"maxValue": 50.00,
"unitText": "HOUR"
}
},
"jobBenefits": "Medical, Life, Dental",
"datePosted": "2011-10-31",
"description": "Description: ABC Company Inc. seeks a full-time mid-level software engineer to develop in-house tools.",
"educationRequirements": "Bachelor's Degree in Computer Science, Information Systems or related fields of study.",
"employmentType": "Full-time",
"experienceRequirements": "Minumum 3 years experience as a software engineer",
"incentiveCompensation": "Performance-based annual bonus plan, project-completion bonuses",
"industry": "Computer Software",
"jobLocation": {
"@type": "Place",
"address": {
"@type": "PostalAddress",
"addressLocality": "Poole",
"addressRegion": "Dorset",
"streetAddress": "33 Holton Road",
"postalCode": "BH16 6LT"
}
},
"occupationalCategory": "15-1132.00 Software Developers, Application",
"qualifications": "Ability to work in a team environment with members of varying skill levels. Highly motivated. Learns quickly.",
"responsibilities": "Design and write specifications for tools for in-house customers Build tools according to specifications",
"salaryCurrency": "USD",
"skills": "Web application development using Java/J2EE Web application development using Python or familiarity with dynamic programming languages",
"specialCommitments": "VeteranCommit",
"title": "Software Engineer",
"workHours": "40 hours per week"
}
有人可以提供修复程序,以使代码通过Google结构化数据测试工具吗?
答案 0 :(得分:0)
您的代码违反了标准:
baseSalary
不包含小时数,而只包含货币和值或范围。
除此之外,还有一个不一致之处: 你写在一个地方:
"minValue": 40.00,
"maxValue": 50.00,
"unitText": "HOUR"
在另一个地方:
"workHours": "40 hours per week"
现在呢? 40小时还是40至50小时?
另一件事:workHours
不是每周工作时间,而是通常的轮班开始和结束时间。