-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Using 0/1 for boolean/integer parameter produces error #1969
Comments
@hdoupe, The
but this way:
|
Ok, I see. So, for all boolean parameters, the JSON file should have "integer_type" be false and "boolean_type" be true? |
@hdoupe said:
Yes and I'm now preparing a pull request that makes those changes to the JSON parameter files and to the source code to accommodate the new and less confusing data type information. |
Ok, thanks @martinholmer. |
I came across this issue while trying to get to 100% test coverage in PR #1952. If you have a parameter that can be either boolean or an integer that is 0 or 1, you will get an error when the parameter is set to 0 or 1.
The code below is using the master branch of Tax-Calculator.
which gives output:
One possible fix for this is:
instead of:
The text was updated successfully, but these errors were encountered: