GitLab CI JSON schema definition does not fully support YAML anchors

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

GitLab CI schema as downloaded from the following URL:

https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json

and configured in my IntellIJ 2022.2.3 (Ultimate) as JSON Schema Version 7 mapping seems not to understand YAML Anchors used in the CI pipeline definition file.

Redacted fragment from the pipeline definition:

.authenticate: &authenticate
  - 'BEARER_TOKEN=$(curl -s -X POST -H "Authorization: token ${API_TOKEN}" https://foo.net/api/tokens/authenticate | jq -r .bearerToken)'

.vulnerability-scan-check-script: &vulnerability-scan-check-script
  - *authenticate

.vulnerability_scan_check_job_template: &vulnerability_scan_check_job_template
  script:
    - *vulnerability-scan-check-script

vulnerability_scan_results_check:
  stage: verify scan results
  variables:
    API_TOKEN: 'some-value'
  <<: *vulnerability_scan_check_job_template
  tags: [shell]

The following error is reported at the definition of &authenticate YAML Anchor:

Schema validation: incompatible types: Required: string. Actual: array

Entire pipeline works well in our hosted GitLab Enterprise Edition 15.3.1-ee.

Am I missing something?

Edited by 🤖 GitLab Bot 🤖