Skip to content

Yaml: Help setting json schemas #14528

Answered by notpeter
mikeymop asked this question in Q&A
Jul 16, 2024 · 5 comments · 12 replies
Discussion options

You must be logged in to vote

A few things.

  1. You're repo uses initialization_options not settings.
  2. The Chart.yaml works (for me) no settings required.
  3. You're attempting to associate the Chart schema with files that are not charts. If you look at the chart.json there is no kind. This is the wrong schema and yaml-language-server is telling you that.
  4. Helm charts aren't YAML, they are YAML with Go template escaping. These do not work out of the box with yaml-language-server

Are you seeing something different?

This isn't a Zed settings, yaml-language-server configuration or JSON schema issue at all.
You can't validate the JSON schema of a template.
It's like complaining that a PHP script doesn't validate as html:

<html><…

Replies: 5 comments 12 replies

Comment options

You must be logged in to vote
1 reply
@gmeligio
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@notpeter
Comment options

@gmeligio
Comment options

@notpeter
Comment options

@gmeligio
Comment options

@softprops
Comment options

Comment options

You must be logged in to vote
4 replies
@mikeymop
Comment options

@mikeymop
Comment options

@notpeter
Comment options

Answer selected by notpeter
@softprops
Comment options

Comment options

You must be logged in to vote
1 reply
@softprops
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants