Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$refs in schema don't work #10

Open
justinbowes opened this issue Jun 3, 2016 · 0 comments
Open

$refs in schema don't work #10

justinbowes opened this issue Jun 3, 2016 · 0 comments

Comments

@justinbowes
Copy link

justinbowes commented Jun 3, 2016

thing.schema.json:

{
    "title": "thing schema",
    "type": "object",
    "properties": {
        "id": {
            "$ref": "id.schema.json"
        }
    },
    "additionalProperties": false
}

Editing a thing:

(path)/thing.schema.json is no valid JSON
Must set ajax option to true to load external ref id.schema.json

Additionally, trying to load "mything.thing.json" initially caused the following error in the console:

Uncaught (in promise) ReferenceError: schemeName is not defined
    at file:///C:/Users/dafta/.atom/packages/atom-json-editor/lib/atom-json-editor.coffee:92:39
    at process._tickCallback (node.js:392:9)

I fixed the error in the following line to unmask the $ref problem.

---          atom.notifications.addError schemeName + ' is no valid JSON',
+++          atom.notifications.addError path + ' is no valid JSON',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant