MCPcopy
hub / github.com/ComposioHQ/composio / _decode_pointer_segment

Function _decode_pointer_segment

python/composio/utils/json_schema.py:68–70  ·  view source on GitHub ↗
(segment: str)

Source from the content-addressed store, hash-verified

66
67
68def _decode_pointer_segment(segment: str) -> str:
69 # Order matters: ``~01`` must decode to ``~1`` (literal), not ``/``.
70 return segment.replace("~1", "/").replace("~0", "~")
71
72
73class _Resolution(t.NamedTuple):

Callers 1

_try_resolve_pointerFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…