-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Combined schema.json/#/definitions/foo not supported? #408
Comments
Has anybody resolved this issue? I think mine is similar. I have a schema that links, via $ref, to an external schema. That schema has its own "definitions" section. Any reference, in the external schema, to its own "definitions" section fails. The only "definitions" section it can refer to successfully is the top level schema. |
Same problem... if the schema was loaded using: then any $ref inside xx.json is will be ignored
|
Is there a solution for this yet? This seems to be the biggest issue I am experiencing with the tool |
Looks like references to $ref: file.json do not get read recursively during the initial parsing.
|
Just submitted a pull request to solve this issue. While remote files referenced with eg:
In this example, JSONEditor will load both |
I couldn't get references of this form to work:
{ "$ref": "schema.json/#/definitions/foo" }
whereas either
#/definitions/foo
orschema.json
do work. My understanding is that these are allowed by the spec?Without that support, it makes it hard to partially decompose a large file - either all the definitions have to be within it, or every definition has to be its own file, pretty much.
The text was updated successfully, but these errors were encountered: