-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig-schema.json
92 lines (92 loc) · 3.17 KB
/
config-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
{
"title": "JSON schema for v8r config files",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"type": "object",
"additionalProperties": false,
"properties": {
"cacheTtl": {
"description": "Remove cached HTTP responses older than cacheTtl seconds old. Specifying 0 clears and disables cache completely",
"type": "integer",
"minimum": 0
},
"customCatalog": {
"type": "object",
"description": "A custom schema catalog. This catalog will be searched ahead of any custom catalogs passed using --catalogs or SchemaStore.org",
"required": [
"schemas"
],
"properties": {
"schemas": {
"type": "array",
"description": "A list of JSON schema references.",
"items": {
"type": "object",
"required": [
"name",
"fileMatch",
"location"
],
"additionalProperties": false,
"properties": {
"description": {
"description": "A description of the schema",
"type": "string"
},
"fileMatch": {
"description": "A Minimatch glob expression for matching up file names with a schema.",
"uniqueItems": true,
"type": "array",
"items": {
"type": "string"
}
},
"location": {
"description": "A URL or local file path for the schema location",
"type": "string"
},
"name": {
"description": "The name of the schema",
"type": "string"
},
"parser": {
"description": "A custom parser to use for files matching fileMatch instead of trying to infer the correct parser from the filename. 'json', 'json5', 'toml' and 'yaml' are always valid. Plugins may define additional values which are valid here.",
"type": "string"
}
}
}
}
}
},
"format": {
"description": "Output format for validation results. 'text' and 'json' are always valid. Plugins may define additional values which are valid here.",
"type": "string"
},
"ignoreErrors": {
"description": "Exit with code 0 even if an error was encountered. True means a non-zero exit code is only issued if validation could be completed successfully and one or more files were invalid",
"type": "boolean"
},
"patterns": {
"type": "array",
"description": "One or more filenames or glob patterns describing local file or files to validate",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "string"
}
},
"verbose": {
"description": "Level of verbose logging. 0 is standard, higher numbers are more verbose",
"type": "integer",
"minimum": 0
},
"plugins": {
"type": "array",
"description": "An array of strings describing v8r plugins to load",
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^(package:|file:)"
}
}
}
}