2013-05-22 19 views
2

我假設這與驗證工具是早期版本有關。 RSVP行動沒有得到很好的驗證。下面的標記也沒有顯示在Gmail中,我對此感到不知所措。gmail架構:rsvp動作未驗證

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<script type="application/ld+json"> 
{ 
    "@context": "schema.org", 
    "@type": "Event", 
    "name": "3pm April 21st", 
    "startDate": "2013-05-05T15:00:00", 
    "endDate": "2013-05-05T16:00:00", 
    "location": { 
    "@type": "Place", 
    "address": { 
     "@type": "PostalAddress", 
     "name": "XXXX", 
     "streetAddress": "999 West Adams", 
     "addressLocality": "Chicago", 
     "addressRegion": "IL", 
     "postalCode": "60607", 
     "addressCountry": "USA" 
    } 
    }, 
    "action": [ 
    { 
     "@type": "RsvpAction", 
     "handler": { 
     "@type": "HttpActionHandler", 
     "url": "http://foobar.net/1" 
     }, 
     "attendance": "http://schema.org/RsvpAttendance/Yes" 
    }, 
    { 
     "@type": "RsvpAction", 
     "handler": { 
     "@type": "HttpActionHandler", 
     "url": "http://foobar.net/2" 
     }, 
     "attendance": "http://schema.org/RsvpAttendance/No" 
    }, 
    { 
     "@type": "RsvpAction", 
     "handler": { 
     "@type": "HttpActionHandler", 
     "url": "http://foobar.net/3" 
     }, 
     "attendance": "http://schema.org/RsvpAttendance/Maybe" 
    } 
    ] 
} 
</script><img alt="Open_tracker" src="http://localhost:3000/invitations/14157/open_tracker"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
</head> 
<body> 
</div> 
</body> 
</html> 

1 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> 
2 
<html xmlns="http://www.w3.org/1999/xhtml"> 
3 
<head> 
4 
<script type="application/ld+json"> 
5 
{ 
6 
    "@context": "schema.org", 
7 
    "@type": "Event", 
8 
    "name": "3pm April 21st", 
9 
    "startDate": "2013-05-05T15:00:00", 
10 
    "endDate": "2013-05-05T16:00:00", 
11 
    "location": { 
12 
    "@type": "Place", 
13 
    "address": { 
14 
     "@type": "PostalAddress", 
15 
     "name": "XXX", 
16 
     "streetAddress": "999 West Adams", 
17 
     "addressLocality": "Chicago", 
18 
     "addressRegion": "IL", 
19 
     "postalCode": "60607", 
20 
     "addressCountry": "USA" 
21 
    } 
22 
    }, 
23 
    "action": [ 
24 
    { 
25 
     "@type": "RsvpAction", 
26 
     "handler": { 
27 
     "@type": "HttpActionHandler", 
28 
     "url": "http://foobar.net/1" 
29 
     }, 
30 
     "attendance": "http://schema.org/RsvpAttendance/Yes" 
31 
    }, 
32 
    { 

Extracted structured data 
Item1 
Type: 
RsvpAction 
Unknown type RsvpAction 
Properties: 
    attendance 
http://schema.org/RsvpAttendance/No 
Unknown property http://schema.org/attendance 
The property attendance cannot be used with the RsvpAction type 
    handler 
Item3 
Unknown property http://schema.org/handler 
The property handler cannot be used with the RsvpAction type 
Item2 
Type: 
Place 
Properties: 
    address 
Item9 
Item3 
Type: 
HttpActionHandler 
Unknown type HttpActionHandler 
Properties: 
    url 
http://foobar.net/2 
Item4 
Type: 
HttpActionHandler 
Unknown type HttpActionHandler 
Properties: 
    url 
http://foobar.net/3 
Item5 
Type: 
HttpActionHandler 
Unknown type HttpActionHandler 
Properties: 
    url 
http://foobar.net/1 
Item6 
Type: 
Event 
Properties: 
    startDate 
2013-05-05T15:00:00 
Not a valid DateTime value 
Not a valid Date value 
    endDate 
2013-05-05T16:00:00 
Not a valid DateTime value 
Not a valid Date value 
    name 
3pm April 21st 
    location 
Item2 
    action 
Item8 
Item1 
Item7 
Item8 
Item1 
Item7 
Item8 
Item1 
Item7 
The property action cannot be used with the Event type 
The property action cannot be used with the Event type 
The property action cannot be used with the Event type 
Item7 
Type: 
RsvpAction 
Unknown type RsvpAction 
Properties: 
    attendance 
http://schema.org/RsvpAttendance/Maybe 
Unknown property http://schema.org/attendance 
The property attendance cannot be used with the RsvpAction type 
    handler 
Item4 
Unknown property http://schema.org/handler 
The property handler cannot be used with the RsvpAction type 
Item8 
Type: 
RsvpAction 
Unknown type RsvpAction 
Properties: 
    attendance 
http://schema.org/RsvpAttendance/Yes 
Unknown property http://schema.org/attendance 
The property attendance cannot be used with the RsvpAction type 
    handler 
Item5 
Unknown property http://schema.org/handler 
The property handler cannot be used with the RsvpAction type 

回答

3

在文檔驗證工具是在α和它不支持所有的新類型呢。此外,Gmail目前不支持回覆郵件和回覆操作,正如參考指南中所報告的那樣:https://developers.google.com/gmail/schemas/reference/rsvp-action

+0

它也無助於支持傳播如此之細 - 我們是否應該在產品論壇上的Google日曆上尋求答案? Google電子郵件?或者可能是其中一個API產品論壇(其中一個由於惡意軟件而被關閉)。或者在這裏堆棧溢出?如果只有我們知道在哪裏,那麼希望在某個地方發佈模式集成的經驗性答案。專注於搜索引擎優化的模式討論似乎埋藏着更多功能性的想法...... – gth