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.

External ref does not contain a valid schema

See original GitHub issue

In short the issue is that lib doesn’t expect true/false as a result of resolving $ref.

Expected behavior

$ref is resolved correctly;

Actual behavior

jsoneditor.js:624 Uncaught External ref does not contain a valid schema

Steps to reproduce the behavior

{
  "title": "json schema example",
  "type": "object",
  "properties": {
    "example": {
      "$ref": "http_returning_json_value_true"
    }
  }
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
pmk65commented, Jan 28, 2019

@dima-starosud No problem. Typecasting in JavaScript is a real pain. And my 1st attempt didn’t work either. 😉 I’m pretty sure that the problem occurs in other places too. Issue #159 looks very similar. I’ll make a PR with my last solution.

0reactions
dima-starosudcommented, Jan 28, 2019

@pmk65 Ah, I see, you’re right. Sorry. Solution proposed by you should work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Federation error codes - Apollo GraphQL Docs
Indicates that a schema provided for an Apollo Federation supergraph is not a valid supergraph schema. 2.1.0. INVALID_FIELD_SHARING, A field that is non- ......
Read more >
Using a $ref and other properties within a JSON Schema
Found the answer in json schema property description and "$ref" usage, basically if a $ref exists all other properties are ignored.
Read more >
Referencing XML schemas and DTDs | IntelliJ IDEA ...
Your XML file may reference an external XML schema (XSD) or DTD file, ... IntelliJ IDEA won't validate the XML file, however, it...
Read more >
Using $ref - Swagger
With OpenAPI 3.0, you can reference a definition hosted on any location. ... For example, suppose you have the following schema object, which...
Read more >
Web service error codes (Microsoft Dataverse) - Power Apps
Message: The custom API swagger is not valid: 'The '$ref' ... Message: User does not have the privilege to act on behalf of...
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