Repository navigation
Conversation
Fixes opis#163. Register dynamic anchors and resolve their initial URI before searching the outer dynamic scope; leave recursive references unchanged. AI assistance: OpenAI GPT-6 (Codex), authorized by the account owner. Prompt summary: reproduce issue 163, implement resource-scoped dynamic anchors, and verify regression and official JSON Schema tests.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #163.
A
$dynamicRefto an anchor below a schema resource root currently validates against the resource root instead. The issue example wrongly inherits the root'sadditionalProperties: false; other nested targets can recurse until PHP exhausts memory.Register
$dynamicAnchoralongside$anchorand resolve the initial reference URI before searching the dynamic evaluation path for its outermost matching dynamic anchor. Track schemas entered through ordinary applicators as well as references. Static targets, JSON Pointer/boolean targets, and 2019-09 recursive references retain their own behavior. This is independent of the evaluated-annotation issue in #167/#170.Validation (PHP 8.4.26, PHPUnit 9.6.38):
composer run tests: 6,297 tests, 6,347 assertions pass.git diff --checkpass. Independent Codex Standards and Spec reviews pass after a missing applicator-scope edge case was corrected and regression-tested.Other PHP versions and upstream CI have not been run locally. AI assistance: OpenAI GPT-6 (Codex) performed implementation, tests, drafting, and independent agent reviews at the account owner's request.