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

Accepts "1" for a boolean #10497

Open
kroeckx opened this issue Jul 28, 2021 · 0 comments
Open

Accepts "1" for a boolean #10497

kroeckx opened this issue Jul 28, 2021 · 0 comments
Labels
A-Spec-Compliance places where synapse does not conform to the spec T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.

Comments

@kroeckx
Copy link

kroeckx commented Jul 28, 2021

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)

@reivilibre reivilibre added T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. A-Spec-Compliance places where synapse does not conform to the spec labels Jul 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Spec-Compliance places where synapse does not conform to the spec T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Projects
None yet
Development

No branches or pull requests

2 participants