You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The description in https://stackoverflow.com/a/69774520/5382179 helped me better understand how the keyword should actually work and the PR extends the missing parts of the current implementation of the keyword.
There might be a better way to implement this, but it would require bigger changes in the way the scopes and the validator functions are handled.
Thanks @nezhar. I'm about ready to merge this (sorry for the delay), but to be extra safe I'd like to re-run the benchmarks that @Stranger6667 optimized from #853 -- can you rerun the two they left in that issue there just to be sure we don't regress on them by merging this?
FWIW, some of the work done during ref resolving is only relevant for newer drafts (after Draft 7), so maybe as a follow-up from this PR it would be nice to explore adding some conditional logic to avoid unnecessary work (e.g. the $dynamicAnchor keyword is not a part of Draft 7, so could be skipped during resolving) for older drafts. Not sure how much benefit it would yield though
No worries! Will merge I think. Thanks! If you manage to figure out the remaining 2 skipped tests in draft2020 a PR would of course would be very much appreciated. So long as they still fail, my suspicion is that the implementation is still not 100% correct (even in the parts that pass), but it's definitely an improvement. Thanks again!
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
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.
The description in https://stackoverflow.com/a/69774520/5382179 helped me better understand how the keyword should actually work and the PR extends the missing parts of the current implementation of the keyword.
There might be a better way to implement this, but it would require bigger changes in the way the scopes and the validator functions are handled.