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

"Unable to load schema from '\': No content" error using JSON schema for YAML validation. #1684

Open
JBurning opened this issue Sep 24, 2024 · 2 comments

Comments

@JBurning
Copy link

I am encountering an issue when I try to use a JSON schema file to validate my YAML files. I am using Eclipse and I have created the content type like so:
image

And added the following schema association for it:
Screenshot 2024-09-24 155732

But when I go to the file in question all I get is this error at the top:
Screenshot 2024-09-24 160246

I created it following this guide but selected a local file I had on my system rather than a web URL. Is this a bug or am I missing something?

My Schema:

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Test Schema",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "test": {
      "type": ["array", "null"]
    }
  }
}

My YAML (which should be invalid):

---
startList:
  - 1
  - 2
@JBurning
Copy link
Author

If I try to use a URL instead of a local file, it works properly just fyi

@jsmurray2
Copy link

bump

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

2 participants