You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The boolean query string parameters are incorrectly converted to string.
If the value is true it's converted to "1", and if it's false it's converted to "".
swagger-codegen should probably encode the query string by itself.
Currently the generated code is broken.
And Guzzle/psr7 doesn't seem to want to fix this bug soon.
The text was updated successfully, but these errors were encountered:
Description
The boolean query string parameters are incorrectly converted to string.
If the value is
true
it's converted to"1"
, and if it's false it's converted to""
.The PHP generated code is calling https://github.com/guzzle/psr7/blob/ff1b0eae41c6bc0b03ef657f29d8a9eea7ee75eb/src/Query.php#L71
But this code has a bug, it's incorrectly converting boolean values to string.
See guzzle/psr7#264
Suggest a fix/enhancement
swagger-codegen should probably encode the query string by itself.
Currently the generated code is broken.
And Guzzle/psr7 doesn't seem to want to fix this bug soon.
The text was updated successfully, but these errors were encountered: