Vscode-yaml: Support for anchors/references?

Created on 31 Jan 2018  路  3Comments  路  Source: redhat-developer/vscode-yaml

Hi! First, thanks for the great plugin.

I'm having an issue with validations not respecting injected references. For example, in a Circle CI 2.0 config file, I've got the docker key in a reference:

defaults: &job_defaults
  docker:
    - image: circleci/node:8.2.1

and then use it later in a job:

jobs:
  job1: 
    <<: *job_defaults

However, I still receive a Missing property "docker". message on the job1 node.

Is this the expected behavior? Thanks in advance.

bug

Most helpful comment

Clearly this bug needs to be reopen because current version does not work with them.

All 3 comments

I'm still working on this issue but I've done a bit of investigation, it looks like the yaml parser is getting back the correct results, so it looks to be something either schema or json parser side.

@JPinkney thanks for the fix! I look forward to its release!

Clearly this bug needs to be reopen because current version does not work with them.

Was this page helpful?
0 / 5 - 0 ratings