Skip to content

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

Description

@JBurning

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

Activity

  1. JBurning commented on Sep 25, 2024

    @JBurning
    Author

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

  2. jsmurray2 commented on Sep 26, 2024

    @jsmurray2

    bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions