Skip to content

Instantly share code, notes, and snippets.

@rr-it
Last active January 7, 2024 16:12
Show Gist options
  • Save rr-it/6846b5d7f6940221f946b64e2cf95c9e to your computer and use it in GitHub Desktop.
Save rr-it/6846b5d7f6940221f946b64e2cf95c9e to your computer and use it in GitHub Desktop.
DiscussionForumPosting - schema markup test with missing text-attribute

DiscussionForumPosting schema markup test

<html>
<head>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"headline": "Very Popular Thread",
"url": "https://gist.github.com/rr-it/6846b5d7f6940221f946b64e2cf95c9e/raw/page-1.html",
"datePublished": "2024-01-01T11:11:11Z",
"author": {
"@type": "Person",
"url": "https://gist.github.com/rr-it/6846b5d7f6940221f946b64e2cf95c9e/raw/author-1.html",
"name": "Author-1"
},
"text": "Text example.",
"comment": [{
"@type": "Comment",
"text": "Post-1 on Page-1"
},{
"@type": "Comment",
"text": "Post-2 on Page-1"
}]
}
</script>
</head>
<body>
</body>
</html>
<html>
<head>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"headline": "Very Popular Thread",
"url": "https://gist.github.com/rr-it/6846b5d7f6940221f946b64e2cf95c9e/raw/page-1.html",
"datePublished": "2024-01-01T11:11:11Z",
"author": {
"@type": "Person",
"url": "https://gist.github.com/rr-it/6846b5d7f6940221f946b64e2cf95c9e/raw/author-1.html",
"name": "Author-1"
},
"text": "Text example.",
"comment": [{
"@type": "Comment",
"text": "Post-3 on Page-2"
},{
"@type": "Comment",
"text": "Post-4 on Page-2"
}]
}
</script>
</head>
<body>
</body>
</html>
<html>
<head>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"headline": "Very Popular Thread",
"url": "https://gist.github.com/rr-it/6846b5d7f6940221f946b64e2cf95c9e/raw/page-1.html",
"datePublished": "2024-01-01T11:11:11Z",
"author": {
"@type": "Person",
"url": "https://gist.github.com/rr-it/6846b5d7f6940221f946b64e2cf95c9e/raw/author-1.html",
"name": "Author-1"
},
"text": "Text example.",
"comment": [{
"@type": "Comment",
"text": "Post-5 on Page-3"
},{
"@type": "Comment",
"text": "Post-6 on Page-3"
}]
}
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment