123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- {
- "$schema": "http://json-schema.org/draft-07/schema",
- "$id": "https://joystream.org/VideoEntity.schema.json",
- "title": "VideoEntity",
- "description": "JSON schema for entities based on Video runtime schema",
- "type": "object",
- "additionalProperties": false,
- "required": [
- "channel",
- "category",
- "title",
- "description",
- "duration",
- "thumbnailURL",
- "media",
- "isPublic",
- "isCurated",
- "isExplicit",
- "license"
- ],
- "properties": {
- "channel": {
- "oneOf": [
- {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "new"
- ],
- "properties": {
- "new": {
- "$ref": "./ChannelEntity.schema.json"
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "existing"
- ],
- "properties": {
- "existing": {
- "$ref": "../entityReferences/ChannelRef.schema.json"
- }
- }
- }
- ],
- "description": "Reference to member's channel"
- },
- "category": {
- "oneOf": [
- {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "new"
- ],
- "properties": {
- "new": {
- "$ref": "./ContentCategoryEntity.schema.json"
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "existing"
- ],
- "properties": {
- "existing": {
- "$ref": "../entityReferences/ContentCategoryRef.schema.json"
- }
- }
- }
- ],
- "description": "Reference to a video category"
- },
- "title": {
- "type": "string",
- "maxLength": 64,
- "description": "The title of the video"
- },
- "description": {
- "type": "string",
- "maxLength": 1024,
- "description": "The description of the Video"
- },
- "duration": {
- "type": "integer",
- "minimum": 0,
- "maximum": 4294967295,
- "description": "Video duration in seconds"
- },
- "skippableIntroDuration": {
- "type": "integer",
- "minimum": 0,
- "maximum": 65535,
- "description": "Video's kippable intro duration in seconds"
- },
- "thumbnailURL": {
- "type": "string",
- "maxLength": 256,
- "description": "Video thumbnail url (recommended ratio: 16:9)"
- },
- "language": {
- "oneOf": [
- {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "new"
- ],
- "properties": {
- "new": {
- "$ref": "./LanguageEntity.schema.json"
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "existing"
- ],
- "properties": {
- "existing": {
- "$ref": "../entityReferences/LanguageRef.schema.json"
- }
- }
- }
- ],
- "description": "Video's main langauge"
- },
- "media": {
- "oneOf": [
- {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "new"
- ],
- "properties": {
- "new": {
- "$ref": "./VideoMediaEntity.schema.json"
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "existing"
- ],
- "properties": {
- "existing": {
- "$ref": "../entityReferences/VideoMediaRef.schema.json"
- }
- }
- }
- ],
- "description": "Reference to VideoMedia"
- },
- "hasMarketing": {
- "type": "boolean",
- "description": "Whether or not Video contains marketing"
- },
- "publishedBeforeJoystream": {
- "type": "integer",
- "minimum": 0,
- "maximum": 4294967295,
- "description": "If the Video was published on other platform before beeing published on Joystream - the original publication date"
- },
- "isPublic": {
- "type": "boolean",
- "description": "Whether the Video is supposed to be publically displayed"
- },
- "isCurated": {
- "type": "boolean",
- "description": "Whether the Video has been curated (verified) by a Curator"
- },
- "isExplicit": {
- "type": "boolean",
- "description": "Whether the Video contains explicit material."
- },
- "license": {
- "oneOf": [
- {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "new"
- ],
- "properties": {
- "new": {
- "$ref": "./LicenseEntity.schema.json"
- }
- }
- },
- {
- "type": "object",
- "additionalProperties": false,
- "required": [
- "existing"
- ],
- "properties": {
- "existing": {
- "$ref": "../entityReferences/LicenseRef.schema.json"
- }
- }
- }
- ],
- "description": "A License the Video is published under"
- }
- }
- }
|