XENOS/priv/question.json

36 lines
1.0 KiB
JSON

{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Question",
"type": "object",
"required": ["@context", "type", "id", "attributedTo", "content"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string", "enum": ["Question"] },
"id": { "type": "string" },
"attributedTo": { "type": "string" },
"content": { "type": "string" },
"to": {
"type": "array",
"items": { "type": "string" }
},
"cc": {
"type": "array",
"items": { "type": "string" }
},
"inReplyTo": { "type": "string" },
"published": { "type": "string" },
"updated": { "type": "string" },
"summary": { "type": "string" },
"oneOf": {
"type": "array",
"items": { "type": "string" }
},
"anyOf": {
"type": "array",
"items": { "type": "string" }
},
"closed": { "type": ["string", "boolean"] }
},
"additionalProperties": true
}