An interpreter of FEEL, written in Rust, with integrations for PostgreSQL, WASM, Lua, and Python.
fix(pg): treat a stray Foreign as an error-null, not a value-null
public
fix(pg): treat a stray Foreign as an error-null, not a value-null
feel-pg can never build a `Foreign` (its input is JSONB, not host objects), so the
`value_to_json` arm is purely for exhaustiveness — but it should signal an error
rather than a benign absence. Group it with `Value::Error` so the intent is an
error-null, matching the evaluator's "unexpected value -> error-null" rule (ADR-21).
`contains_error` stays Foreign-insensitive on purpose: in feel-py/feel-wasm a
`Foreign` result is a legitimate pass-through and must not raise under strict mode.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>