question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update Editor to support all JSON pointers for definitions, with a dev note for non `definitions` usage.

See original GitHub issue

General 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

  1. Use a JSON schema that has a $ref entry without usage of a #/definitions/ JSON pointer.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
smostafadcommented, Sep 25, 2021

So please do not write editor json!!

0reactions
cybtachyoncommented, Sep 24, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found