Skip to content

yaml.schemas does not accept lists as shown in documentation #1207

@minsis

Description

@minsis

Describe the bug

When trying to add a custom schema for various sets of files using a list, the schema is not applied and VSCode gives a warning.

As an exmaple:

{
  "yaml.schemas": {
      ".schema/vars.schema.json": ["inventories/group_vars/*.yml", "inventories/host_vars/*.yml"]
    }
}

The warning states: Incorrect type. Expected "string".

Expected Behavior

A provided list should evaulate all definitions in the list as shown in the documentation.

Current Behavior

A warning is given that the definition should be a string and not a list. It also does not apply any schema to the defined list of files.

Steps to Reproduce

  1. Simply define a list in yaml.schemas

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions