forked from babel/babel
/
schema.json
53 lines (53 loc) 路 1.71 KB
/
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Options",
"description": "JSON schema for Babel Fixture Test Runner",
"allOf": [
{ "$ref": "#/definitions/TaskOption" },
{ "$ref": "https://json.schemastore.org/babelrc", "$comment": "Todo: switch to our inhouse schema" }
],
"definitions": {
"OS": {
"type":"string",
"description": "The possible values of `process.platform`. See https://nodejs.org/api/process.html#process_process_platform",
"enum": ["aix", "darwin", "freebsd", "linux", "openbsd", "sunos", "win32"]
},
"TaskOption": {
"type": "object",
"properties": {
"BABEL_8_BREAKING": {
"description": "Whether this test should run when BABEL_8_BREAKING is enabled",
"type":"boolean"
},
"ignoreOutput": {
"description": "Whether the test should generate and compare with output.js",
"type": "boolean"
},
"minNodeVersion": {
"description": "The minimum Node.js version this test should run on",
"type": "string",
"pattern": "^\\d+(\\.\\d+){0,2}$"
},
"os": {
"description": "The OS this test should run on",
"anyOf": [
{ "type": "array", "items": { "$ref": "#/definitions/OS" } },
{
"$ref": "#/definitions/OS"
}
]
},
"throws": {
"description": "Expected thrown error message",
"type":"string",
"default": ""
},
"validateLogs": {
"description": "Whether this test should validate the stdout and stderr",
"type":"boolean",
"default": false
}
}
}
}
}