Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Model JSONPath segments explicitly #11

@jg-rp

Description

@jg-rp

Considering our abstract class JSONPathSelector, and the absence of a JSONPathSegment class, we are currently blurring the lines between segments and selectors.

We should refactor to follow the JSONPath model described in RFC 9535 by implementing a JSONPathSegment class, where all JSONPathSelector instances belong to a segment, even shorthand selectors. In turn, a JSONPath expression (currently JSONPath and should be JSONPathQuery or JSONPathExpression to match terminology from RFC 9535) should be made up of segments only.

This diagram illustrates what we want.

Blank diagram

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions