From 56941c6e937442938edc3194e5b2ba6c36159cf6 Mon Sep 17 00:00:00 2001 From: Matthieu Faou Date: Tue, 1 Aug 2023 16:33:23 -0400 Subject: [PATCH 1/3] Removed the scan-result field requirement in the scan-result object --- objects/scan-result/definition.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/objects/scan-result/definition.json b/objects/scan-result/definition.json index eeda424..1ddcf6a 100644 --- a/objects/scan-result/definition.json +++ b/objects/scan-result/definition.json @@ -230,9 +230,6 @@ "description": "Scan result object to add meta-data and the output of the scan result by itself.", "meta-category": "network", "name": "scan-result", - "required": [ - "scan-result" - ], "uuid": "ebe2a359-8f5b-4a45-8106-d1678935b4c4", "version": 2 -} \ No newline at end of file +} From 0515870942d60e4a97561271a15635946ec4a7eb Mon Sep 17 00:00:00 2001 From: Matthieu Faou Date: Wed, 2 Aug 2023 15:35:12 -0400 Subject: [PATCH 2/3] Added requiredOneOf to scan-result object definition --- objects/scan-result/definition.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/objects/scan-result/definition.json b/objects/scan-result/definition.json index 1ddcf6a..d92e92f 100644 --- a/objects/scan-result/definition.json +++ b/objects/scan-result/definition.json @@ -230,6 +230,10 @@ "description": "Scan result object to add meta-data and the output of the scan result by itself.", "meta-category": "network", "name": "scan-result", + "requiredOneOf": [ + "scan-result", + "scan-result-query", + ], "uuid": "ebe2a359-8f5b-4a45-8106-d1678935b4c4", "version": 2 } From 3d81ef381cc10ba4aa73d2137a460b37a21bad6d Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Thu, 3 Aug 2023 10:47:45 +0200 Subject: [PATCH 3/3] fix: [scan-results] JSON and trailing comma ;-) --- objects/scan-result/definition.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/objects/scan-result/definition.json b/objects/scan-result/definition.json index d92e92f..da00cd8 100644 --- a/objects/scan-result/definition.json +++ b/objects/scan-result/definition.json @@ -232,8 +232,8 @@ "name": "scan-result", "requiredOneOf": [ "scan-result", - "scan-result-query", + "scan-result-query" ], "uuid": "ebe2a359-8f5b-4a45-8106-d1678935b4c4", - "version": 2 -} + "version": 3 +} \ No newline at end of file