summaryrefslogtreecommitdiffstats
path: root/integrations/schemas/categories.json
blob: 9ebb852f552148f2839c6713f5802ded058c0e4a (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "array",
  "title": "Category information for integrations.",
  "items": {
    "$ref": "#/$defs/category"
  },
  "$defs": {
    "category": {
      "type": "object",
      "description": "An entry for a single category.",
      "properties": {
        "id": {
          "$ref": "./shared.json#/$defs/id"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "description": "The display name for the category."
        },
        "description": {
          "type": "string",
          "description": "A description of the category."
        },
        "most_popular": {
          "type": "boolean",
          "description": "Indicates if the category should show up in the initial list of categories, or only in the full expanded list."
        },
        "priority": {
          "type": "integer",
          "description": "Indicates sort order for categories that are marked as most popular."
        },
        "collector_default": {
          "type": "boolean",
          "description": "Indicates that the category should be added to collector integrations that list no categories."
        },
        "children": {
          "type": "array",
          "description": "A list of categories that are children of this category.",
          "items": {
            "$ref": "#/$defs/category"
          }
        }
      },
      "required": [
        "id",
        "name",
        "description",
        "most_popular",
        "priority",
        "children"
      ]
    }
  }
}