Skip to content

After upgrade to version 1.16.0 validation stop working #1100

Closed
redhat-developer/yaml-language-server
#1026
@ondrej1960

Description

@ondrej1960

Describe the bug

I use version 1.15.0, after upgrade to version 1.16.0 the validation does not working. Downgrade to version 1.15.0 solve the problem.

Steps to Reproduce

Workspace definition of schema file relation:

"settings": {
	"json.schemas": [
		{
			"fileMatch": [
				"**/*.loc.json"
			],
			"url": "./model_structure/def_location.json"
		},
		{
			"fileMatch": [
				"**/*.tab.json"
			],
			"url": "./model_structure/def_table.json"
		},
		{
			"fileMatch": [
				"**/*.tran.json"
			],
			"url": "./model_structure/def_transformaton.json"
		}
	],
	"yaml.schemas": {
		"./model_structure/def_location.json" : "**/*.loc.yaml",
		"./model_structure/def_transformation.json" : "**/*.tran.yaml"
	}
},

Schema definition:
{
"$schema": "https://json-schema.org/draft-07/schema#",
"$id": "def_location.json",
"$comment": "Schema for profile",
"title": "Location",
"description": "Location object in this configuration.",
"type": "object",
"properties": {
"Name": {
"type": "string",
"description": "Name of location."
},
"Type": { "$ref": "./lov/def_location_type.json" },
},
"required": ["Name", "Type" ],
"additionalProperties": false
}

Affected files - any file with name like *.loc.yaml

Environment

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

Metadata

Metadata

Labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions