Files
marka/registry/schema-org/Answer.schema.json
Max Richter c687eff53d big tings
2025-08-17 15:16:17 +02:00

40 lines
1.5 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "schema:Answer",
"title": "Answer",
"description": "An answer offered to a question; perhaps correct, perhaps opinionated or wrong.",
"type": "object",
"allOf": [
{
"description": "A comment on an item - for example, a comment on a blog post. The comment's content is expressed via the [[text]] property, and its topic via [[about]], properties shared with all CreativeWorks.",
"$ref": "schema:Comment"
}
],
"properties": {
"answerExplanation": {
"description": "A step-by-step or full explanation about Answer. Can outline how this Answer was achieved or contain more broad clarification or statement about it. ",
"oneOf": [
{
"anyOf": [
{ "$ref": "schema:Comment" },
{ "$ref": "schema:WebContent" }
]
},
{
"type": "array",
"items": {
"anyOf": [
{ "$ref": "schema:Comment" },
{ "$ref": "schema:WebContent" }
]
}
}
]
},
"parentItem": {
"description": "The parent of a question, answer or item in general. Typically used for Q/A discussion threads e.g. a chain of comments with the first comment being an [[Article]] or other [[CreativeWork]]. See also [[comment]] which points from something to a comment about it.",
"anyOf": [{ "$ref": "schema:Comment" }, { "$ref": "schema:CreativeWork" }]
}
}
}