python-jsonschema / python-jsonschema/check-jsonschema

Unable to resolve nested `$ref`s when using local files

Open
#640 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.