summaryrefslogtreecommitdiffstats
path: root/browser/components/pagedata/schemas/video.schema.json
blob: 1091ebfe89238b304516ca5b6ad17a5622c2be26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "video.schema.json",
  "title": "Video",
  "description": "A video",
  "type": "object",
  "properties": {
    "name": {
      "description": "The video's name",
      "type": "string"
    },
    "duration": {
      "description": "The video's duration in seconds",
      "type": "number"
    },
    "quality": {
      "description": "A short description of the video's quality (e.g. 'HD', '720p')",
      "type": "string"
    },
    "show": {
      "description": "For an episode of a TV show the name of the TV show",
      "type": "string"
    },
    "season": {
      "description": "For an episode of a TV show the season number it appears in",
      "type": "number"
    },
    "episode": {
      "description": "For an episode of a TV show the number of the episode in the season",
      "type": "number"
    },
    "genre": {
      "description": "The genre of the video",
      "type": "string"
    }
  },
  "required": ["name"]
}