$dynamicRef doesn't find $dynamicAnchor overrides in root schemas without $id
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start with the minimal reproducer referenced in python-jsonschema/jsonschema#1497 and trace the $dynamicRef and $dynamicAnchor resolution entry points in referencing. Confirm that a root schema without an $id honors overrides in its $defs, then add coverage showing that the override is selected instead of the template anchor.
Written by the indexing model from the issue text.
Description
$dynamicRef doesn't find $dynamicAnchor overrides in root schemas without $id
When a root schema has no $id and uses $ref to pull in a template containing $dynamicRef, the $dynamicRef ignores any $dynamicAnchor overrides defined in the root schema's $defs. It falls back to the template's own $dynamicAnchor instead.
Filed from python-jsonschema/jsonschema#1497. The root cause is in referencing — see that issue for the minimal reproducer.
- Dominant language
- Python
- Stars
- 56
- Forks
- 55
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 4
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from python-jsonschema/referencing
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
python-jsonschema/referencing#444 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
python-jsonschema/referencing#434 ·
-
$ref resolution in a $dynamicRef target ($dynamicAnchor) happening from base URI instead of targetOpen
Difficulty 4/5 3-5 days Newbie friendliness 30/100
python-jsonschema/referencing#445 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
python-jsonschema/referencing#442 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
python-jsonschema/referencing#257 ·
All issues in python-jsonschema/referencing
Similar issues
-
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
web-push-libs/pywebpush#216 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
AgriciDaniel/claude-seo#572 ·
Maintainers usually reply within 5 days
-
area:print-dispatch
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
area: docs domain: technical-writing good first issue type: documentation
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Deepak3699/Ai_Mentor#919 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day