-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(plugins) gRPC gateway uri para bool handling (#9180)
gRPC gateway should handle the "false" argument as false for boolean parameters. This change is to be consistent with [grpc-gateway](https://github.com/grpc-ecosystem/grpc-gateway), where by `http://localhost:8090/v1/example/echo?stringv=false&boolean=false&number=1` you get: ```json { "stringv": "false", "boolean": false, "number": 1 } ``` as echo. Before this fix, any value passed to a boolean parameter is treated as a string and thus encoded as `true`. Fix FTI-3335
- Loading branch information
1 parent
090f046
commit 6cd2676
Showing
6 changed files
with
168 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
150 changes: 83 additions & 67 deletions
150
spec/fixtures/grpc/target/targetservice/targetservice.pb.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
spec/fixtures/grpc/target/targetservice/targetservice_grpc.pb.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters