Closed XedinUnknown closed 12 months ago
i ran into this issue recently and this would be a great change if it works as anticipated
however the tests in this PR only test the outcome of the validator and not the actual parser when used with intersecting pointers, perhaps that would be a good thing to also test?
it may be that the algorithm simply will not handle intersection of any type in the keys i'm not super knowledgable on the parser itself and assume you have done some testing of the outcome locally however?
Hi @mad-briller! I've done testing, sure, and it works for me in a project.
Regarding parser testing, I'm not sure if it's actually a part of the parser's concern. But if it is, I'm also not that knowledgeable about parsers. In fact, there are #105 and #108 that would need someone with parser experience to fix. If you'd like, I can give you write access to the repo with the fix, and feel free to add more tests.
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
1b3aa89
) 100.00% compared to head (1581575
) 100.00%.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This fixes halaxa/json-machine#106 by adding a path separator to terminate each pointer when comparing for intersection.