forked from mdn/browser-compat-data
-
Notifications
You must be signed in to change notification settings - Fork 3
/
browsers.schema.json
96 lines (91 loc) · 3.38 KB
/
browsers.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"$schema": "http://json-schema.org/schema#",
"definitions": {
"browsers": {
"type": "object",
"properties": {
"chrome": { "$ref": "#/definitions/browser_statement" },
"chrome_android": { "$ref": "#/definitions/browser_statement" },
"deno": { "$ref": "#/definitions/browser_statement" },
"edge": { "$ref": "#/definitions/browser_statement" },
"firefox": { "$ref": "#/definitions/browser_statement" },
"firefox_android": { "$ref": "#/definitions/browser_statement" },
"ie": { "$ref": "#/definitions/browser_statement" },
"nodejs": { "$ref": "#/definitions/browser_statement" },
"opera": { "$ref": "#/definitions/browser_statement" },
"opera_android": { "$ref": "#/definitions/browser_statement" },
"safari": { "$ref": "#/definitions/browser_statement" },
"safari_ios": { "$ref": "#/definitions/browser_statement" },
"samsunginternet_android": { "$ref": "#/definitions/browser_statement" },
"webview_android": { "$ref": "#/definitions/browser_statement" }
},
"additionalProperties": false
},
"browser_statement": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Browser name, avoid using unnecessary English (e.g. prefer 'Chrome Android' over 'Chrome for Android')."
},
"accepts_flags": {
"type": "boolean",
"description": "Whether the browser supports flags."
},
"pref_url": {
"type": "string",
"description": "URL of the page where feature flags can be changed (e.g. 'about:config' or 'chrome://flags')."
},
"preview_name": {
"type": "string",
"description": "Preview name, avoid long-form names (use 'Nightly' instead of 'Firefox Nightly')."
},
"releases": {
"type": "object",
"additionalProperties": { "$ref": "#/definitions/release_statement" }
}
},
"required": ["name", "releases"],
"additionalProperties": false
},
"release_statement": {
"type": "object",
"properties": {
"release_date": {
"type": "string",
"format": "date",
"description": "Release date"
},
"release_notes": {
"type": "string",
"format": "uri",
"description": "A link to the release notes or changelog for a given release."
},
"accepts_flags": {
"type": "boolean",
"description": "Whether the release supports flags."
},
"engine": {
"type": "string",
"enum": ["Blink", "EdgeHTML", "Gecko", "Presto", "Trident", "WebKit", "V8"],
"description": "Name of the browser's underlying engine."
},
"engine_version": {
"type": "string",
"description": "Version of the engine corresponding to the browser version."
},
"status": {
"type": "string",
"enum": ["retired", "current", "exclusive", "beta", "nightly", "esr", "planned"],
"description": "The status of the given browser release (e.g. current, retired, beta, nightly)."
}
},
"additionalProperties": false
}
},
"type": "object",
"properties": {
"browsers": { "$ref": "#/definitions/browsers" }
},
"additionalProperties": false
}