summaryrefslogtreecommitdiffstats
path: root/toolkit/components/search/schema/search-config-icons-schema.json
blob: eda23080dd43afe47486562e3f5ef0992bb16cea (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
{
  "title": "Search Engine Icons Schema",
  "description": "This schema contains the structure of data for search engine icons which built from search-config-v2. The associated remote settings collection is search-config-icons.",
  "type": "object",
  "required": ["engineIdentifiers", "imageSize"],
  "properties": {
    "engineIdentifiers": {
      "title": "Engine Identifiers",
      "description": "An array of search engine identifiers that the attached icon is for. If an individual entry is suffixed with a star, matching is applied on a \"starts with\" basis.",
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[a-zA-Z0-9-_]*\\*?$"
      }
    },
    "imageSize": {
      "title": "Image Size",
      "description": "The image size in pixels. May be used to choose the most appropriate image for the display.",
      "type": "number"
    },
    "filter_expression": {
      "type": "string",
      "title": "Filter Expression",
      "description": "A JEXL to filter records",
      "pattern": "^[a-zA-Z0-9-_=!\"{} .]*$"
    }
  }
}