python-jsonschema / python-jsonschema/check-jsonschema
Unable to resolve nested `$ref`s when using local files
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 341
- Forks
- 71
- Avg merge
- 15d 20h
- Merged PRs (30d)
- 4
Description
I'm trying to build a repository hosting JSON schemas of our application data, alongside with examples of those schemas.
To make sure the examples stay in sync with the schemas, I want to validate them.
If my schema references another schema, validation seems to work as expected.
However, if that other schema in turn references a third schema, that third schema cannot be resolved.
Please see https://github.com/GitGraf/check-jsonschema-resolve for a minimal reproducer.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the minimal reproducer at https://github.com/GitGraf/check-jsonschema-resolve and trace how local schema references are resolved across multiple levels. Confirm the example validates successfully when a schema references another schema that references a third schema.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100