-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
30 lines (30 loc) · 961 Bytes
/
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
{
"$schema": "http://json-schema.org/draft-07/schema",
"title": "JSONConfig",
"type": "object",
"definitions": {
"SupportedPackageManagerOrAuto": {
"enum": ["auto", "npm", "yarn", "pnpm"]
},
"SupportedReportFormat": {
"enum": ["summary", "tables", "paths", "json"]
}
},
"properties": {
"$schema": { "type": "string" },
"debug": { "type": "boolean" },
"directory": { "type": "string" },
"output": { "$ref": "#/definitions/SupportedReportFormat" },
"packageManager": { "$ref": "#/definitions/SupportedPackageManagerOrAuto" },
"ignore": {
"description": "Array of vulnerabilities to ignore when auditing",
"type": "array",
"items": {
"type": "string",
"pattern": "^[\\w-]+\\|((?:@[a-z\\d*~-][a-z\\d*._~-]*/)?[a-z\\d~-][a-z\\d._~-]*>)*?((?:@[a-z\\d*~-][a-z\\d*._~-]*/)?[a-z\\d~-][a-z\\d._~-]*)$"
}
}
},
"required": [],
"additionalProperties": false
}