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.

How can I resolve all references in a schema?

See original GitHub issue

I would like to take a schema that may have local or remote references, and return an equivalent schema that does not use any references at all. This would be really useful for hypothesis-jsonschema, but I have no idea how to do it with RefResolver - I can’t tell from the docs whether this is even something it should do.

Maybe related to python-jsonschema/referencing#3? Any advice would be appreciated - I’d also be happy to e.g. ban remote references or local ids if that would help. I sketched an idea for the quick-and-dirty on Zac-HD/hypothesis-jsonschema#6 but would prefer an upstream implementation if possible 😄

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
maddaniocommented, Jul 16, 2019

Hmm, but this can’t be doable for recursive references, right?

1reaction
Juliancommented, Dec 4, 2022

Will respond with more detail but probably related to python-jsonschema/jsonschema#419 (and the latter is “doable” but not as easy as it should be so yeah definitely up for improvements here)

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I resolve all references in a schema? #542 - GitHub
I would like to take a schema that may have local or remote references, and return an equivalent schema that does not use...
Read more >
how to resolve all references for a JSON schema in java
how to resolve all references in the schema , and make a complete JSON. Main goal is to map the resolved schema in...
Read more >
JSON Schema $Ref Parser - API Dev Tools
JSON Schema $Ref Parser is a full JSON Reference and JSON Pointer implementation that crawls even the most complex JSON Schemas and gives...
Read more >
Managing references ($ref) - JSON Schema
Managing references ( $ref ). Manatee.Json handles all references as defined in the draft 2019-09 version of the JSON Schema specification.
Read more >
JSON Schema references ($ref) - Opis
References. Resolve references using $ref keyword.
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