not_a_map

Diagnostic `nanook::template::not_a_map`

Summary

cannot index `{0}` with `[{1}]` — not a map

Details

When this fires

You used [key] lookup on a value that isn't a map. Common causes: the path is actually a struct (use .field), or you stepped into a scalar by accident. Raised by the renderer in crates/nanook-template/src/render.rs when peek.into_map() fails.

What to check

Use . for struct fields, [] for map keys. They aren't interchangeable. Walk the path one level at a time against the trigger payload.

broken: {{ trigger["value"] }}
fixed:  {{ trigger.value }}
broken: {{ trigger.value["x"] }}
fixed:  {{ trigger.labels["x"] }}