Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Accepts "1" for a boolean #10497

@kroeckx

Description

@kroeckx

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

    Labels

    A-Spec-Complianceplaces where synapse does not conform to the specT-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.

    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