Concepts¶
This section explains the design behind pydantic-jsonpointer. Read these pages to understand why the library is structured the way it is before diving into the reference.
-
A
strsubclass with parsed-token storage, RFC 6901 validation in__new__, escape/unescape helpers, and full Pydantic v2 schema integration. -
Building
JsonPointerstrings from Pydantic model attribute chains withpointer_from_model(), including Union disambiguation and RootModel entry. -
Ptrhandles,resolve()semantics, the four convenience helpers, frozen taint propagation, and theEllipsissentinel. -
The
ContainerAdapterprotocol, the eight required methods plus the optionalis_value_frozenhook, and the module-level registry. -
The three shipped policies —
ByAttribute,BySerializationAlias,ByValidationAlias— and when to pick each. -
The six-class exception hierarchy with intentional multiple inheritance so callers can catch under stdlib exception types.