Skip to content

Error parsing a $ref schema of a property, but no issue parsing others, full schema is remote URL #1683

@edonv

Description

@edonv

I'm attempting to use a remote schema (https://raw.githubusercontent.com/edonv/obs-scheduler/refs/heads/main/config-schema.json). I have the AJAX option enabled. I have multiple subschemas in definitions that are each referenced at least once. One of the subschemas in definitions is throwing an error for not being found though. The errors in the console reads as:

jsoneditor.js:2 reference:'https://raw.githubusercontent.com/edonv/obs-scheduler/refs/heads/main/config-schema.json#/definitions/DateString' not found!

jsoneditor.js:2 Uncaught TypeError: Cannot read properties of undefined (reading 'type')

The exact same schema works without issue if it's a JS object literal in a local file, and that method works too even if the definitions/DateString subschema is just (referencing the definition from the remote URL):

"DateString": {
    "$ref": "https://raw.githubusercontent.com/edonv/obs-scheduler/refs/heads/main/config-schema.json#definitions/DateString"
},

Any ideas?

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