schema
defineComment(input?: Comment)
SchemaOrgComment
(see how components work)string
Person
Comment
${canonicalUrl}#/schema/comment/${hash(node)}
author
will be resolved as root nodes and referencedSee the blog recipe for more examples.
defineComment({
text: 'This is really cool!',
author: {
name: 'Harlan Wilton',
url: 'https://harlanzw.com',
}
})
export interface CommentSimple extends Thing {
/**
* The textual content of the comment, stripping HTML tags.
*/
text: string
/**
* A reference by ID to the parent Article (or WebPage, when no Article is present).
*/
about?: IdReference
/**
* A reference by ID to the Person who wrote the comment.
*/
author: NodeRelation<Person>
}