From 56941c6e937442938edc3194e5b2ba6c36159cf6 Mon Sep 17 00:00:00 2001 From: Matthieu Faou Date: Tue, 1 Aug 2023 16:33:23 -0400 Subject: [PATCH 1/2] 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/2] 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 }