Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accepts "1" for a boolean #10497

Open
matrixbot opened this issue Dec 18, 2023 · 0 comments
Open

Accepts "1" for a boolean #10497

matrixbot opened this issue Dec 18, 2023 · 0 comments

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 18, 2023

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)

@matrixbot matrixbot changed the title Dummy issue Accepts "1" for a boolean Dec 21, 2023
@matrixbot matrixbot reopened this Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant