swagger-client 3.26.1 → 3.26.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1097,6 +1097,12 @@ function formDataBuilder({
1097
1097
  value,
1098
1098
  parameter
1099
1099
  }) {
1100
+ if (value === false && parameter.type === 'boolean') {
1101
+ value = 'false';
1102
+ }
1103
+ if (value === 0 && ['number', 'integer'].indexOf(parameter.type) > -1) {
1104
+ value = '0';
1105
+ }
1100
1106
  if (value || parameter.allowEmptyValue) {
1101
1107
  req.form = req.form || {};
1102
1108
  req.form[parameter.name] = {