Skip to content

Allow 1 to be true and 0 to be false.#856

Merged
Marsup merged 2 commits intohapijs:masterfrom
timcosta:allow_1_0_as_boolean
May 5, 2016
Merged

Allow 1 to be true and 0 to be false.#856
Marsup merged 2 commits intohapijs:masterfrom
timcosta:allow_1_0_as_boolean

Conversation

@timcosta
Copy link
Contributor

We would like to be able to send 1 as a truthy value and 0 as a falsy value, as our back end uses MySQL which stores booleans as 1s and 0s.

@camfraser
Copy link

👍

@hueniverse hueniverse added the breaking changes Change that can breaking existing code label Mar 24, 2016
@Marsup Marsup added this to the 9.0.0 milestone Apr 9, 2016
@Marsup Marsup self-assigned this Apr 9, 2016
@Marsup Marsup merged commit dc02d4f into hapijs:master May 5, 2016
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

breaking changes Change that can breaking existing code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants