question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I disable yaml schema for space yaml file?

See original GitHub issue

Summary

Our server has an yaml file named cluster.yml, it’s for our server only, but yaml think it’s config for rke-cluster, and warn as blow:

Property Register is not allowed.yaml-schema: https://raw.githubusercontent.com/dcermak/vscode-rke-cluster-config/main/schemas/cluster.yml.json

I never install the vscode-ext vscode-rke

It looks like the vscode config yaml.schemas can control it but I don’t know how to set a “no schema”:

eg:

"yaml.schemas": {
		"": "cluster.yaml",
	},

Really thinks for help.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

8reactions
henrahmagixcommented, Apr 26, 2021

@szyhf I’ve been able to accomplish this with an empty schema file, either locally or in some absolute directory, e.g.

"yaml.schemas": {
  ".empty_schema.json": [
    "ignore/these/files/*.yml"
  ]
}

where .empty_schema.json is a file with the following contents:

{}
1reaction
henrahmagixcommented, Dec 27, 2021

@evilensky sure 😃 I’ve saved the empty file in my home directory, and then used an absolute path to that file, so the setting works in every project 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to configure YAML schema to make editing files easier
To help with editing, it is possible to provide a YAML schema that can be leveraged by a large set of integrated development...
Read more >
YAML - Visual Studio Marketplace
The association of a YAML file to a schema can be done either in the YAML file itself using a modeline or in...
Read more >
Configuration — yamllint 1.28.0 documentation - Read the Docs
yamllint uses a set of rules to check source files for problems. Each rule is independent from the others, and can be enabled,...
Read more >
visual studio code - VSC temporarily turn off yaml lintin
maybe try to disable the yaml.schemaStore ? go in in settings.json and add : "yaml.schemaStore.enable": false.
Read more >
YAML Validations - DEV Community ‍ ‍
To do it, create a .yamllint file at the top level of your project. Then, in this file, you can enable/disable rules or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found