eclipse-wildwebdeveloper / wildwebdeveloper

Simple and productive Web Development Tools in the Eclipse IDE
https://projects.eclipse.org/projects/tools.wildwebdeveloper
Eclipse Public License 2.0
190 stars 71 forks source link

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

Open JBurning opened 1 month ago

JBurning commented 1 month ago

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 commented 1 month ago

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

jsmurray2 commented 1 month ago

bump