Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow validating YAML with inline yaml-language-server comments #340

Open
Destroy666x opened this issue Oct 17, 2023 · 2 comments
Open

Allow validating YAML with inline yaml-language-server comments #340

Destroy666x opened this issue Oct 17, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Destroy666x
Copy link

As title says, e.g.:

# yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json

Pretty sure that's the most common way of describing schemas in YAML as of today. Would be nice to support it.

@sirosen sirosen added the enhancement New feature or request label Oct 17, 2023
@sirosen
Copy link
Member

sirosen commented Oct 17, 2023

I'm not familiar with this usage pattern, so I'll have to read up. This feels similar to #310.

It's likely that I'll first tackle #310 without including this, but I'll keep it in mind as a future use-case to make sure I leave room for it.

@vorburger
Copy link

I'm not familiar with this usage pattern, so I'll have to read up.

@sirosen FYI this is (possibly among others, I'm not 100% sure myself!) popular for folks (incl. me..) who use https://github.com/redhat-developer/vscode-yaml?tab=readme-ov-file#associating-a-schema-in-the-yaml-file. HTH!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants