Skip to content

Don't raise JSONPointerIndexError when parsing a JSON Pointer #85

@jg-rp

Description

@jg-rp

We currently raise a JSONPointerIndexError when parsing a JSON Pointer string with an out of range index (set by class variables min_int_index and max_int_index, not out of range for any particular data).

JSONPointerIndexError inherits from JSONPointerResolutionError, which is reserved for errors at resolution time, not parse time. We should instead raise a JSONPointerError or a direct subclass of it.

(Also, JSONPointerEncodeError is unused. It predates the dodgy # and ~ syntax.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions