fix(openapiqueries): fix v2 openAPI queries documentation page and exclusion from results #7575
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.








Closes #7574
Reason for Proposed Changes
--exclude-queriesflag didn’t work for logical override IDs.Proposed Changes
Example Fix OpenAPI results exclusion
Results before fix:
Command ran: go run cmd\console\main.go scan -p "teste/kics_issue_002.json" -d "teste/oom_payload.json" -o "teste" --output-name "oom_results.json" -v --exclude-queries "6e96ed39-bf45-4089-99ba-f1fe7cf6966f,586abcee-9653-462d-ad7b-2638a32bd6e6,74703c89-0ea2-49ab-a7db-bf04f19f5a57"
openAPI_V2_Queries_Bug_001.mp4
Results After Fix:
Command ran: go run cmd\console\main.go scan -p "teste/kics_issue_002.json" -d "teste/oom_payload.json" -o "teste" --output-name "oom_results.json" -v --exclude-queries "6e96ed39-bf45-4089-99ba-f1fe7cf6966f,e3f026e8-fdb4-4d5a-bcfd-bd94452073fe,586abcee-9653-462d-ad7b-2638a32bd6e6,74703c89-0ea2-49ab-a7db-bf04f19f5a57"
Documentation Page Generation and Query Details Missing

Before Fix:
After Fix:

I submit this contribution under the Apache-2.0 license.