Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/validators/json_schemas/vulnerability_cvss_vectors.json')
-rw-r--r--app/validators/json_schemas/vulnerability_cvss_vectors.json22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/validators/json_schemas/vulnerability_cvss_vectors.json b/app/validators/json_schemas/vulnerability_cvss_vectors.json
new file mode 100644
index 00000000000..7ec1339e974
--- /dev/null
+++ b/app/validators/json_schemas/vulnerability_cvss_vectors.json
@@ -0,0 +1,22 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "title": "Schema for cvss attribute of Vulnerability",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "vendor": {
+ "type": "string",
+ "default": "unknown"
+ },
+ "vector_string": {
+ "type": "string",
+ "example": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
+ }
+ },
+ "required": [
+ "vendor",
+ "vector_string"
+ ]
+ }
+}