Fix security report schema validation logic
What does this MR do and why?
Previously, if there was only one report for a report type, that report was not being validated because of a bug in the logic.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.