shk-readme-generator/security_rules_schema.json

67 lines
1.3 KiB
JSON
Raw Normal View History

2022-11-23 14:10:20 +01:00
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"patternProperties": {
"^\\d+$": {
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"type": "string",
"enum": [
"disregarded",
"observed",
"not applicable",
"unknown"
]
},
"argument": {
"anyOf": [
{ "type": "string" },
{ "type": "array", "items": { "type": "string" } }
]
2022-11-23 14:10:20 +01:00
},
"artifacts": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"repository": { "type": "string" },
2022-12-13 17:51:20 +01:00
"branch": { "type": "string" },
"file": { "type": "string" },
"lines": { "type": "array", "items": { "type": "integer" } }
},
"required": [
"file"
]
}
2022-11-23 14:10:20 +01:00
}
},
"required": [
"status",
"argument"
]
}
},
"required": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18"
]
}