我正在测试schema.org json-ld标记以使用self邮件为
imentioned的电子邮件,这是我使用的示例架构以及邮件中发送的html内容。我正在使用Gmail SMTP发送邮件,并打开Gmail客户端。
<script type="application/ld+json">
{
"type" : "LodgingReservation",
"checkinTime" : "2025-24-01T15:00:00Z",
"checkoutTime" : "2025-24-05T11:00:00Z",
"potentialAction" : {
"type" : "ReserveAction",
"name" : "Add to calender",
"target" : "https://calendar.google.com"
},
"reservationFor" : {
"type" : "LodgingBusiness",
"address" : {
"type" : "PostalAddress",
"addressCountry" : "Sample Country",
"addressLocality" : "Sample City",
"addressRegion" : "Sample State",
"postalCode" : "12345",
"streetAddress" : "123 Sample Street"
},
"name" : "Sample Hotel Chain",
"telephone" : "+1234567890"
},
"reservationId" : "123456789",
"reservationStatus" : "http://schema.org/ReservationConfirmed",
"underName" : {
"type" : "Person",
"name" : "John Doe"
},
"@context" : "http://schema.org"
}
</script>
我希望将此保留添加到我的日历中,要么弹出或自动加入。
我已经使用
Validator
进行了自我填充,经过验证的模式,我检查了类似的
问题,但是没有解决方案可以检查进行自邮件进行测试。
我尝试添加潜在的动作并删除它们。我也以微数据格式尝试了它,但没有结果。
我尝试了Google中提到的模式的版本,并在
Googleschemavalidator中验证了它,但仍然没有结果。
node.js nodemailer中的类似结果。
我通过
Googleschema验证器划出了您的标记代码,并确定了一些错误:
检查:丢失和必需的show