summaryrefslogtreecommitdiffstats
path: root/browser/components/pagedata/schemas/article.schema.json
blob: e02bb1165559b167d2c3cbe942847b094337cdec (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
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "article.schema.json",
  "title": "Article",
  "description": "An article for reading",
  "type": "object",
  "properties": {
    "name": {
      "description": "The article's name",
      "type": "string"
    },
    "author": {
      "description": "The author(s) of the article",
      "type": "string"
    },
    "date": {
      "description": "The date the article was published in ISO-8601 date or date/time format",
      "type": "string"
    },
    "readingTime": {
      "description": "The expected time to read the article in seconds",
      "type": "number"
    }
  },
  "required": ["name"]
}