synapse icon indicating copy to clipboard operation
synapse copied to clipboard

User admin API returns integers instead of booleans on SQLite, or the documentation is incorrect

Open squahtx opened this issue 2 years ago • 0 comments

Similar to #13505. Originally reported by @jplatte in https://github.com/matrix-org/synapse/pull/13509#issuecomment-1212916888:

Description

The first example on https://matrix-org.github.io/synapse/develop/admin_api/user_admin_api.html shows this:

    "is_guest": 0,
    "admin": 0,
    "deactivated": 0,
    "shadow_banned": 0,

but some of these fields are mentioned as being bool further down.

squahtx avatar Aug 12 '22 14:08 squahtx