From ff905305a697ab6eabd7ae5e60447e09656ff001 Mon Sep 17 00:00:00 2001 From: ArturRibeiro-CX Date: Mon, 3 Feb 2025 14:35:31 +0000 Subject: [PATCH] fix(query): correct keyActualValue and keyExpectedValue for maxItems validation --- .../general/array_without_maximum_number_items/query.rego | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/queries/openAPI/general/array_without_maximum_number_items/query.rego b/assets/queries/openAPI/general/array_without_maximum_number_items/query.rego index 1c5ef77cdcc..b3b3100c2a9 100644 --- a/assets/queries/openAPI/general/array_without_maximum_number_items/query.rego +++ b/assets/queries/openAPI/general/array_without_maximum_number_items/query.rego @@ -17,8 +17,8 @@ CxPolicy[result] { "documentId": doc.id, "searchKey": sprintf("%s.type", [openapi_lib.concat_path(path)]), "issueType": "MissingAttribute", - "keyActualValue": "Array schema has 'maxItems' set", - "keyExpectedValue": "Array schema has 'maxItems' undefined", + "keyExpectedValue": "Array schema has 'maxItems' set", + "keyActualValue": "Array schema has 'maxItems' undefined", "searchLine": common_lib.build_search_line(path, []) , "overrideKey": version, } @@ -37,8 +37,8 @@ CxPolicy[result] { "documentId": doc.id, "searchKey": sprintf("%s.type", [openapi_lib.concat_path(path)]), "issueType": "MissingAttribute", - "keyActualValue": "Array schema has 'maxItems' set", - "keyExpectedValue": "Array schema has 'maxItems' undefined", + "keyExpectedValue": "Array schema has 'maxItems' set", + "keyActualValue": "Array schema has 'maxItems' undefined", "searchLine": common_lib.build_search_line(path, []) , "overrideKey": version, }