Add validation for approvers with empty array
What does this MR do and why?
Add validation for approvers with empty array in respect to scan result policies.
JSON schema doc for minItems.
Related issue: #351166 (closed)
How to set up and validate locally
- Enable
scan_result_policy
feature flag - Create a security project as described in the docs
- Create a new scan result policy with the project owner with any of the approvers with empty array. For instance,
user_approvers: []
.
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.