vscode-yaml icon indicating copy to clipboard operation
vscode-yaml copied to clipboard

gitlab-ci.yml validation issues

Open rabidsloth opened this issue 6 years ago • 3 comments

This extension is throwing validation errors when using allow_failure: true within gitlab rules syntax. vscode-yaml version: 0.8.0

Example:

rules:
    - if: '$CI_COMMIT_REF_NAME != "master"'
      when: manual
      allow_failure: true

This is valid syntax as of Gitlab 12.8: https://docs.gitlab.com/ee/ci/yaml/#rulesallow_failure

rabidsloth avatar May 21 '20 21:05 rabidsloth

Hi! I've looked into the issue and it looks like a schema issue. Please file an issue on https://github.com/SchemaStore/schemastore as that's where the schemas are pulled from.

JPinkney avatar May 21 '20 22:05 JPinkney

Will do, thanks!

rabidsloth avatar May 21 '20 23:05 rabidsloth

https://github.com/SchemaStore/schemastore/issues/1053

rabidsloth avatar May 21 '20 23:05 rabidsloth