Skip to content

Commit

Permalink
Merge pull request #65 from krakend/fix_input_assume_bytes
Browse files Browse the repository at this point in the history
Fix description of input_assume_bytes
  • Loading branch information
alombarte authored Feb 6, 2025
2 parents 88d8cbf + be062f7 commit 53faad0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions test/v2.9/all.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@
"path": "./static/"
},
"backend/grpc": {
"input_assume_bytes": true,
"use_request_body": false,
"idle_conn_disconnect_time": "10m",
"use_alternate_host_on_error": true,
Expand Down
2 changes: 1 addition & 1 deletion v2.9/backend/grpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"input_assume_bytes": {
"title": "Assume input are bytes",
"description": "When set to true, when the backend has to fill a bytes field for a grpc protobuf payload to send, first tries to decode the input data (the one coming from either a json body field, a query param or header string) from base64: if it succeeds it fills the field to send with that binary / bytes data. If the incoming field is not a valid urlbase64 decoded field (the one used in jsonpb), it will fill the binary field with the verbatim conversion of the incoming string to bytes. Standard base64 decoding is not attempted.",
"description": "When set to true, when the backend has to fill a bytes field for a grpc protobuf payload to send, first tries to decode the input data (the one coming from either a json body field, a query param or header string) from base64: if it succeeds it fills the field to send with that binary / bytes data. If the incoming field is not a valid base64 decoded field (the one used in jsonpb), it will fill the binary field with the verbatim conversion of the incoming string to bytes.",
"default": false
},
"input_mapping": {
Expand Down
2 changes: 1 addition & 1 deletion v2.9/krakend.json
Original file line number Diff line number Diff line change
Expand Up @@ -1873,7 +1873,7 @@
},
"input_assume_bytes": {
"title": "Assume input are bytes",
"description": "When set to true, when the backend has to fill a bytes field for a grpc protobuf payload to send, first tries to decode the input data (the one coming from either a json body field, a query param or header string) from base64: if it succeeds it fills the field to send with that binary / bytes data. If the incoming field is not a valid urlbase64 decoded field (the one used in jsonpb), it will fill the binary field with the verbatim conversion of the incoming string to bytes. Standard base64 decoding is not attempted.",
"description": "When set to true, when the backend has to fill a bytes field for a grpc protobuf payload to send, first tries to decode the input data (the one coming from either a json body field, a query param or header string) from base64: if it succeeds it fills the field to send with that binary / bytes data. If the incoming field is not a valid base64 decoded field (the one used in jsonpb), it will fill the binary field with the verbatim conversion of the incoming string to bytes.",
"default": false
},
"input_mapping": {
Expand Down

0 comments on commit 53faad0

Please sign in to comment.