Replies: 1 comment
-
|
Hi @alikleit , As far as I know, there isn’t a similar configuration. Perhaps you could open a PR to try making the change. We would greatly welcome and appreciate it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Looking at Kong’s gRPC-Gateway plugin config reference:
https://developer.konghq.com/plugins/grpc-gateway/reference/
By default, the gateway returns enum fields as strings in the JSON response.
Is there a way to configure it so that enums are returned as their numeric values instead?
For example, in Apache APISIX you can do this with the enum_as_value option:
https://apisix.apache.org/docs/apisix/plugins/grpc-transcode/#options-for-pb_option
Is there an equivalent setting or workaround in Kong’s gRPC-Gateway?
Beta Was this translation helpful? Give feedback.
All reactions