forked from mdn/browser-compat-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollector-report.schema.json
82 lines (77 loc) · 2.37 KB
/
collector-report.schema.json
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"$schema": "http://json-schema.org/schema",
"definitions": {
"exposure": {
"type": "string",
"enum": ["ServiceWorker", "SharedWorker", "Window", "Worker"]
},
"feature_name": {
"type": "string",
"pattern": "^[a-zA-Z_0-9-$@.]*$",
"description": "Dot separated identifier path.\n\n@example \"javascript.builtins.Array.at\""
},
"result_message": {
"type": "string",
"description": "An error message from the browser or from the test framework.\n\n@example \"threw TypeError: Failed to construct 'Notification': Illegal constructor.\"\n@example \"Testing CanvasRenderingContext2D in workers is not yet implemented\"\n@example \"Browser does not support detection methods\""
},
"collector_result": {
"oneOf": [
{
"type": "object",
"properties": {
"exposure": { "$ref": "#/definitions/exposure" },
"message": { "$ref": "#/definitions/result_message" },
"name": { "$ref": "#/definitions/feature_name" },
"result": { "type": "boolean" }
},
"additionalProperties": false,
"required": ["exposure", "name", "result"]
},
{
"type": "object",
"properties": {
"exposure": { "$ref": "#/definitions/exposure" },
"message": { "$ref": "#/definitions/result_message" },
"name": { "$ref": "#/definitions/feature_name" },
"result": { "type": "null" }
},
"additionalProperties": false,
"required": ["exposure", "message", "name", "result"]
}
]
}
},
"title": "CollectorReport",
"type": "object",
"properties": {
"__version": {
"type": "string",
"pattern": "^[0-9.]+$",
"description": "Version of mdn-bcd-collector that collected the report."
},
"extensions": {
"type": "array",
"items": {
"type": "string"
}
},
"results": {
"type": "object",
"patternProperties": {
"^.*://.*$": {
"type": "array",
"items": {
"$ref": "#/definitions/collector_result"
}
}
},
"minProperties": 1
},
"userAgent": {
"type": "string",
"description": "User agent of tested browser."
}
},
"required": ["__version", "results", "userAgent"],
"additionalProperties": false
}