mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-10 05:58:11 +00:00
A custom profile field value is a JSON document passed as text and cast with `?::jsonb` in the query; reading one back binds a `jsonpath` text parameter. `json`'s wire format is the raw text, and `jsonb` / `jsonpath` share a one-byte version header followed by the text, so accept a `Text` value for all three. The matching query-side change (pass the value as a str instead of `psycopg2.extras.Json`) is driver-independent and lives in its own PR.