External ref does not contain a valid schema
See original GitHub issueIn 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:
- Created 5 years ago
- Comments:9 (1 by maintainers)
Top 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 >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
@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.
@pmk65 Ah, I see, you’re right. Sorry. Solution proposed by you should work.