You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit acbf067
Browse filesBrowse the repository at this point in the historyBrowse files
fix(test): register PostgresJSONBAdapter for JsonUser JSON fields
psycopg3 automatically deserializes JSONB columns to Python dict/list,
but JsonUser's JSON fields are defined as Optional[str] in the testsuite.
Without a type adapter, Pydantic validation fails when receiving dict
instead of str from the database.
Register PostgresJSONBAdapter for all JSON fields in setup_json_user_fixtures
and setup_async_json_user_fixtures. The adapter's from_database() method
converts dict/list back to JSON string when target_type is str.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments