Update Editor to support all JSON pointers for definitions, with a dev note for non `definitions` usage.
See original GitHub issueGeneral information
- json-editor version: latest
As noted in json-schema-org/json-schema-spec#1097 - the editor should be updated to reflect the proper usage of $ref with JSON pointers (#/$defs/ in newer spec drafts).
Expected behavior
All JSON pointers retrieve schema definitions, and it is noted that the proper usage for schema 3 and later is definitions
($defs
for schema 2019 and later, unsupported at this time).
Instead, subschema end up producing recursive results with the entire referenced schema being included.
Actual behavior
As per https://github.com/json-editor/json-editor/blob/master/src/schemaloader.js#L262 only #/definitions
functionally work as expected.
Steps to reproduce the behavior
- Use a JSON schema that has a
$ref
entry without usage of a#/definitions/
JSON pointer.
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (3 by maintainers)
Top Results From Across the Web
RFC 6901: JavaScript Object Notation (JSON) Pointer
Introduction This specification defines JSON Pointer, a string syntax for identifying a specific value within a JavaScript Object Notation (JSON) document ...
Read more >OpenAPI Specification - Version 3.0.3 - Swagger
An OpenAPI definition uses and conforms to the OpenAPI Specification. ... Note that integer as a type is also supported and is defined...
Read more >User and Workspace Settings - Visual Studio Code
The Settings editor is the UI that lets you review and modify setting values that are stored in a settings.json file. You can...
Read more >Request and Response JSON Reference | Alexa Skills Kit
Note : The session is included for all standard requests, but it is not included for AudioPlayer , VideoApp , or PlaybackController requests....
Read more >Understanding JSON Schema
If all that sounds like gobbledygook to you, you've come to the right place. To define what JSON Schema is, we should probably...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So please do not write editor json!!
@smostafad please create a new issue on Github for your problem: https://github.com/json-editor/json-editor/issues/new/choose
This issue is specifically for adding JSON Pointer support to the editor, not for helping with your unrelated issue.