eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper

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

Open
#1,684 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
201
Forks
76
Avg merge
4d 7h
Merged PRs (30d)
21

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the local JSON schema association in Eclipse with the provided schema and YAML examples, then compare it with the web URL setup described in the linked guide. The work is done when the local schema loads without the “No content” error and the invalid YAML is flagged as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
json, yaml
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.