Steps to replicate the issue (include links if applicable):
- Load any API in Special:ApiSandbox that has a boolean type
- Run the API query
- Look at the JSON output
What happens?:
The JSON output has no item there if the boolean was set to false, and has the value of "1" if it was set to true.
What should have happened instead?:
When set to false the boolean parameter should have been provided with a false like value. There should also be the option to exclude providing the parameter, like there is for the text input, by using a checkbox.
Software version (skip for WMF-hosted wikis like Wikipedia):
Core master branch
Other information (browser name/version, screenshots, etc.):
The used information (i.e. 1 for true and nothing for false) is what should happen when the type is checkbox. The boolean type has a important difference that the absence of a value is invalid. Either false or true like values must be provided.