eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper
"Unable to load schema from '\': No content" error using JSON schema for YAML validation.
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:
And added the following schema association for it:
But when I go to the file in question all I get is this error at the top:
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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