Skip to content

Accepts "1" for a boolean #10497

@matrixbot

Description

@matrixbot

This issue has been migrated from #10497.


When the matrix specification says a type is a boolean, synapse accepts both 0, 1, false and true in the request, while only false and true are valid values.

I've seen this behaviour in at least the typing API (matrix-org/sytest#1088) and the register API (matrix-org/sytest#1089)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions