Frontend: gitlab-ci.yml JSON Schema validation doesn't correctly lint `when` condition

What does this MR do and why?

The Ci schema does not seem to support ENUM values for statuses instead of strings. This MR fixes this problem.

Screenshots or screen recordings

header header

How to set up and validate locally

  1. Navigate to /namespace/project/-/ci/editor

  2. Add the following config:

  3. Notice that there are no errors.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #375248 (closed)

Merge request reports

Loading