{ "type": "object", "properties": { "@type": { "type": "string", "enum": [ "Article", "Discussion", "LiveDiscussion", "QAndADiscussion", "Comment" ] }, "application": { "type": "object", "properties": { "@id": { "type": "string", "minLength": 1 }, "@type": { "type": "string", "enum": [ "Application" ], "default": "Application" } }, "required": [ "@id" ] }, "category": { "type": "object", "properties": { "@id": { "type": "string", "minLength": 1 }, "@type": { "type": "string", "enum": [ "Category" ], "default": "Category" } }, "required": [ "@id" ] }, "topic": { "type": "object", "properties": { "@id": { "type": "string", "minLength": 1 }, "@type": { "type": "string", "enum": [ "Topic" ], "default": "Topic" } }, "required": [ "@id" ] }, "author": { "type": "object", "properties": { "@id": { "type": "string", "minLength": 1 }, "@type": { "type": "string", "enum": [ "ServiceUser", "Worker" ] } }, "required": [ "@id", "@type" ] }, "title": { "type": "string", "minLength": 1 }, "content": { "type": "string", "minLength": 1 }, "publishStatus": { "type": "object", "properties": { "@id": { "type": "string", "enum": [ "Unpublished", "Published" ], "default": "Unpublished" }, "@type": { "type": "string", "enum": [ "PublishStatus" ], "default": "PublishStatus" } }, "required": [ "@id" ] }, "moderationStatus": { "type": "object", "properties": { "@id": { "type": "string", "enum": [ "PendingModeration", "PassedModeration", "FailedModeration" ], "default": "PendingModeration" }, "@type": { "type": "string", "enum": [ "ModerationStatus" ], "default": "ModerationStatus" } }, "required": [ "@id" ] }, "minAge": { "type": "integer", "minimum": 0, "maximum": 999 }, "maxAge": { "type": "integer", "minimum": 0, "maximum": 999 }, "startTime": { "type": "string" }, "endTime": { "type": "string" }, "replyTo": { "type": "object", "properties": { "@id": { "type": "string", "minLength": 1 }, "@type": { "type": "string", "enum": [ "Article", "Discussion", "LiveDiscussion", "QAndADiscussion", "Comment" ] } }, "required": [ "@id", "@type" ] } }, "thumbnail": { "type": "object", "properties": { "@id": { "type": "string", "minLength": 1 }, "@type": { "type": "string", "enum": [ "Thumbnail" ], "default": "Thumbnail" } }, "required": [ "@id" ] }, "required": [ "@id", "@type", "application", "author", "content", "publishStatus", "moderationStatus" ] }