Skip to content

Rework the path management #111

@azmeuk

Description

@azmeuk

Currently the path management is tedious, specially in path_op.py.
There are a lot of split(":") and ":" in path and split(".") and "." in path to manage path urn prefixes, and sub-attributes paths.
A Path pydantic model could simplify things here. It could be used in PatchOperation as type of path instead of str.
It should embed the util methods it needs, and be the object to be used in path_op.py methods.
Path may take type parameters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions