summaryrefslogtreecommitdiffstats
path: root/toolkit/components/extensions/schemas/native_manifest.json
blob: b08262e59b31554ff88e9b4f6e85b8b71b3ad243 (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
56
57
58
59
60
[
  {
    "namespace": "manifest",
    "types": [
      {
        "id": "NativeManifest",
        "description": "Represents a native manifest file",
        "choices": [
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "pattern": "^\\w+(\\.\\w+)*$"
              },
              "description": {
                "type": "string"
              },
              "path": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "enum": ["pkcs11", "stdio"]
              },
              "allowed_extensions": {
                "type": "array",
                "minItems": 1,
                "items": {
                  "$ref": "manifest.ExtensionID"
                }
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "$ref": "manifest.ExtensionID"
              },
              "description": {
                "type": "string"
              },
              "data": {
                "type": "object",
                "additionalProperties": {
                  "type": "any"
                }
              },
              "type": {
                "type": "string",
                "enum": ["storage"]
              }
            }
          }
        ]
      }
    ]
  }
]