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

Specify schema from a Node dependency / node_modules #977

Open
samuelneff opened this issue Jun 6, 2024 · 0 comments
Open

Specify schema from a Node dependency / node_modules #977

samuelneff opened this issue Jun 6, 2024 · 0 comments

Comments

@samuelneff
Copy link

Summary

Is it possible to specify a schema file from a project dependency without a relative path into node_modules?

Relevant information

Something like this:

# yaml-language-server: $schema=my-library/schema.json
my-yaml-content: Goes here

with package.json:

{
  "devDependencies": {
    "my-library": "*"
  }
}

The full relative path looks like this:

# yaml-language-server: $schema=../../../node_modules/my-library/schema.json
my-yaml-content: Goes here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant