Open Ventilateur opened 3 years ago
Thanks for the report. I think your suggestion makes a lot of sense.
Would you be interested in preparing a pull request?
Ok, I will find some time to do it. So according to this section, I think it make sense to raise a JsonPointerException
in this case. What do you think?
Agreed - makes sense
FYI I made a PR, can you check please?
Looks good! I’ll merge and include it in the next release. Thanks!
Version: 1.32 Python version: 3.8
Description Removing array element with dash notation raises an unexpected TypeError. Like so:
{'op': 'remove', 'path': '/vals/-'}
.I understand that the dash points to the end of array, but not the last element? Even so, if the syntax is invalid, I think it should raise a
JsonPatchException
orJsonPointerException
.Step to reproduce
Stack trace