Skip to main content

Module exchange_lookup

Module exchange_lookup 

Source
Expand description

Exchange-scoped lookup path grammar shared by SQL :# placeholders and Simple ${...} interpolation. See ADR-0016 (strict rejection) and the rc-o6o Phase 2 spec §3.2.

Grammar (e_gpt decision Q2):

  • body.a.b.cBody([Key("a"), Key("b"), Key("c")]) — walks JSON.
  • body.items.0Body([Key("items"), Index(0)]) — array index.
  • header.some.nameHeader("some.name") — flat key.
  • property.xProperty("x") — flat key.
  • exchangeProperty.xProperty("x") — alias.
  • fooUnscoped("foo") — try body JSON key, then header, then property.

Enums§

ExchangeLookupPath
A parsed Exchange lookup path. See module docs for the grammar.
LookupPathError
Error raised by ExchangeLookupPath::parse. Aligns with ADR-0016 strict rejection: ambiguous / malformed paths are reported, never silently coerced.
PathSegment
A single segment in a body JSON path.