I am totally new here and I love what you have done so far. I noticed that when someone replies to a thread created in Discourse forums that answer is marked as an Article with microdata.
This comes up as invalid at Google’s Testing Tool since it is missing a few markups such as “headline”, “image” and “publisher” which are required when Article is being used.
Is that something that was discussed previously? If yes please feel free to delete my Topic.
Schema.org (the vocabulary) doesn’t require any properties.
Google’s Structured Data Testing Tool is not a Schema.org validator. The tool primarily tests if your use of Schema.org conforms to Google’s own requirements for showing one of their Rich Snippets (or similar features/products).
Hey there @vinothkannans thats true, schema itself does not require anything more but I guess making it compatible with Google’s requirements as well is quite in the interest of all
My solution would be :
For the image give the image add the image url of the person posted the comment
For the headline keep the headline of the topic
For the publisher I am a bit confused.
All of these though are pretty hypothetical because if you change the article with DiscussionForumPosting Google might not even require all these
@tolkin reported to me that Google is still showing posts as invalid:
The image requirement is bizarre. It needs to be an image of the item (the post in this case), not an image contained in the post (which usually won’t exist) or from some metadata about the post. Google’s tool should be showing that as a warning if at all. I’ll add the headline attribute.
I cannot be sure, but it appears the only change that was made to the code was to change the schema type from Article to DiscussionForumPosting, which doesn’t solve the problem.
The change did not include the Google required attributes:
author: missing and required
This could be the poster name
datePublished: missing and required
This could be the posted date
headline: missing and required
This should the topic subject
image: missing and required
This sould be the poster’s avatar image
name: missing and required
I have no idea what this is… perhaps the poster’s name again?