Skip to content

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

Closed

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.)

Activity

  1. added
    bug
    on Aug 3, 2025
  2. linked a pull request that will close this issueRefactor `JSONPointer` and improve docs #92on Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions