Keyword !reference not supported by CI Validation
Checklist
-
I'm using the latest version of the extension (see the latest version in the right column of this page)
- Extension version: v3.30.0
-
I'm using the latest VS Code version (find the latest version here)
- VS Code version: 1.60.0
-
I'm using a supported version of GitLab (see README for the supported version)
- GitLab version: happens on
gitlab.com
- GitLab version: happens on
Summary
CI validation feature does not work with !reference keyword. It seems obviously hard to resolve external dependencies (other repository of the same group, etc.), but even local dependencies are not resolved and reference keyword appears in red. This has also been mentioned here : #383 (comment 569048883) but I believe the topic is slightly different since it is a feature request.
The problem is that once we use the keyword reference in our gitlab-ci (for scripts, and now for rules too with latest gitlab version !
This is also close from the issue here : #213 (closed) but it was with the include/extends keyword, not about the !reference if I read the thread correctly.
Steps to reproduce
Simply copy & paste the content of this documentation part : https://docs.gitlab.com/ee/ci/jobs/job_control.html#reuse-rules-in-different-jobs in a gitlab-ci.yml and try to validate it. The keyword "reference" will be higlighted.
What is the current bug behavior?
!reference keyword not handled by gitlab json schema
What is the expected correct behavior?
Be able to use and validate ci files with !reference inside. This is the case for CI validation in the Web UI.
Relevant logs and/or screenshots
Possible fixes
Sorry, I don't know how json validator could be extended to handle this case.