Skip to content

Commit 46ed054

Browse files
committed
Format all api yml files
1 parent 3406950 commit 46ed054

24 files changed

Lines changed: 1505 additions & 1478 deletions

rust/api/v1/components/examples/notus.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,29 @@ notus_products:
1010
"suse_linux_enterprise_module_for_live_patching_15-sp1",
1111
"suse_manager_debian_9.0",
1212
"slackware_10.1",
13-
"slackware_10.2",
13+
"slackware_10.2"
1414
]
1515

1616
notus_simple:
1717
description: "A simple example for notus run."
18-
value: ["foo", "bar", "foo2"]
18+
value: [ "foo", "bar", "foo2" ]
1919

2020
notus_results:
21-
description:
22-
"A simple example for a notus run response, including a list of vulnerable packages
23-
and their fixed versions."
21+
description: "A simple example for a notus run response, including a list of vulnerable packages and
22+
their fixed versions."
2423
value:
2524
{
2625
"1.3.6.1.4.1.25623.1.1.1.2.2022.3200":
2726
[
2827
{
29-
"name": "foo",
30-
"installed_version": "1.2.3",
31-
"fixed_version": { "start": "1.2.2", "end": "1.2.5" },
32-
},
28+
"name": "foo",
29+
"installed_version": "1.2.3",
30+
"fixed_version": { "start": "1.2.2", "end": "1.2.5" }
31+
},
3332
{
34-
"name": "bar",
35-
"installed_version": "1.2.4",
36-
"fixed_version": { "version": "1.2.5", "specifier": ">=" },
37-
},
38-
],
33+
"name": "bar",
34+
"installed_version": "1.2.4",
35+
"fixed_version": { "version": "1.2.5", "specifier": ">=" }
36+
}
37+
]
3938
}

rust/api/v1/components/examples/results.yml

Lines changed: 48 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,47 @@ scan_results:
55
"items":
66
[
77
{
8-
"id": 0,
9-
"type": "host_start",
10-
"ip_address": "127.0.0.1",
11-
"port": 22,
12-
"protocol": "tcp",
13-
"message": "Thu Mar 23 15:16:37 2023",
14-
},
8+
"id": 0,
9+
"type": "host_start",
10+
"ip_address": "127.0.0.1",
11+
"port": 22,
12+
"protocol": "tcp",
13+
"message": "Thu Mar 23 15:16:37 2023"
14+
},
1515
{
16-
"id": 1,
17-
"type": "error",
18-
"ip_address": "127.0.0.1",
19-
"hostname": "localhost",
20-
"protocol": "tcp",
21-
"message": "MQTT initialization failed",
22-
},
16+
"id": 1,
17+
"type": "error",
18+
"ip_address": "127.0.0.1",
19+
"hostname": "localhost",
20+
"protocol": "tcp",
21+
"message": "MQTT initialization failed"
22+
},
2323
{
24-
"id": 2,
25-
"type": "log",
26-
"ip_address": "127.0.0.1",
27-
"hostname": "localhost",
28-
"oid": "1.3.6.1.4.1.25623.1.0.117628",
29-
"port": 22,
30-
"protocol": "tcp",
31-
"message": "FTP is enabled on the remote SSH service.",
32-
},
24+
"id": 2,
25+
"type": "log",
26+
"ip_address": "127.0.0.1",
27+
"hostname": "localhost",
28+
"oid": "1.3.6.1.4.1.25623.1.0.117628",
29+
"port": 22,
30+
"protocol": "tcp",
31+
"message": "FTP is enabled on the remote SSH service."
32+
},
3333
{
34-
"id": 3,
35-
"type": "alarm",
36-
"ip_address": "127.0.0.1",
37-
"hostname": "localhost",
38-
"oid": "1.3.6.1.4.1.25623.1.0.147696",
39-
"protocol": "tcp",
40-
"message": "Installed version: 9.53.3\nFixed version: 9.55\nInstallation\npath / port: /usr/bin/gs",
41-
},
42-
],
34+
"id": 3,
35+
"type": "alarm",
36+
"ip_address": "127.0.0.1",
37+
"hostname": "localhost",
38+
"oid": "1.3.6.1.4.1.25623.1.0.147696",
39+
"protocol": "tcp",
40+
"message": "Installed version: 9.53.3
41+
42+
Fixed version: 9.55
43+
44+
Installation
45+
46+
path / port: /usr/bin/gs"
47+
}
48+
]
4349
}
4450

4551
scan_result:
@@ -53,7 +59,13 @@ scan_result:
5359
"oid": "1.3.6.1.4.1.25623.1.0.147696",
5460
"port": 22,
5561
"protocol": "tcp",
56-
"message": "Installed version: 9.53.3\nFixed version: 9.55\nInstallation\npath / port: /usr/bin/gs",
62+
"message": "Installed version: 9.53.3
63+
64+
Fixed version: 9.55
65+
66+
Installation
67+
68+
path / port: /usr/bin/gs"
5769
}
5870

5971
host_detail:
@@ -73,7 +85,7 @@ host_detail:
7385
{
7486
"type": "nvt",
7587
"name": "1.3.6.1.4.1.25623.1.0.50282",
76-
"description": "Determine OS and list of installed packages via SSH login",
77-
},
78-
},
88+
"description": "Determine OS and list of installed packages via SSH login"
89+
}
90+
}
7991
}

0 commit comments

Comments
 (0)