You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The thing is that the shape of properties changes depending on the type. I am aware of # yaml-language-server directive, but that changes the schema for the whole file, rather than a subset of it. I would like to do something similar to kustomize's $ref comments, where I can tell it to treat part of the file according to one schema, and another part according to another schema. Is this possible? If yes, is this the extension's feature, or the language server feature?
Context: I'm writing an extension myself for dealing with this type of yaml, and I would like to stand on the shoulders of giants (a.k.a. you), rather than create every completions provider, etc, myself.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Folks 👋
I've got a YAML that looks something like this:
The thing is that the shape of
properties
changes depending on thetype
. I am aware of# yaml-language-server
directive, but that changes the schema for the whole file, rather than a subset of it. I would like to do something similar tokustomize
's$ref
comments, where I can tell it to treat part of the file according to one schema, and another part according to another schema. Is this possible? If yes, is this the extension's feature, or the language server feature?Context: I'm writing an extension myself for dealing with this type of yaml, and I would like to stand on the shoulders of giants (a.k.a. you), rather than create every completions provider, etc, myself.
Beta Was this translation helpful? Give feedback.
All reactions