How can I resolve all references in a schema?
See original GitHub issueI 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:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top 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 >
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 Free
Top 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
Hmm, but this can’t be doable for recursive references, right?
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)