• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "title": "JSON schema for crossAppSharedConfig.json",
3  "$schema": "http://json-schema.org/draft-07/schema#",
4  "type": "object",
5  "additionalProperties": false,
6  "propertyNames": {
7    "enum": [
8      "crossAppSharedConfig"
9    ]
10  },
11  "properties": {
12    "crossAppSharedConfig": {
13      "type": "array",
14      "additionalProperties": false,
15      "uniqueItems": true,
16      "items": {
17        "type": "object",
18        "propertyNames": {
19          "enum": [
20            "uri",
21            "value",
22            "allowList"
23          ]
24        },
25        "required": [
26          "uri",
27          "value",
28          "allowList"
29        ],
30        "properties": {
31          "uri": {
32            "description": "Indicates the key for shared configuration.",
33            "type": "string",
34            "pattern": "^datashareproxy://",
35            "maxLength": 256
36          },
37          "value": {
38            "description": "Indicates the value for shared configuration.",
39            "type": "string",
40            "maxLength": 4096
41          },
42          "allowList": {
43            "description": "List of applications allowed to read the shared configuration.",
44            "type": "array",
45            "maxItems": 256,
46            "uniqueItems": true,
47            "items": {
48              "type": "string",
49              "maxLength": 128,
50              "pattern": "^[0-9]+$"
51            },
52            "default": []
53          }
54        }
55      }
56    }
57  }
58}