-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(gengapic): rest-numeric-enums option enables enum-encoding sys param #1022
feat(gengapic): rest-numeric-enums option enables enum-encoding sys param #1022
Conversation
Oh, one question: are you planning on encoding all enums as ints when sending the request too? We think that would be desirable for symmetry. |
That was already done in #994 :) |
Oh, right! Great! |
@vchudnov-g are we good to merge/release this yet? Thanks |
@noahdietz No, let's not merge this yet. The server changes have not been rolled out yet. |
b617cab
to
df99820
Compare
🤖 I have created a release *beep* *boop* --- ## [0.32.0](v0.31.2...v0.32.0) (2022-08-16) ### Features * **gengapic:** rest-numeric-enums option enables enum-encoding sys param ([#1022](#1022)) ([6bbbf6f](6bbbf6f)) ### Bug Fixes * **gengapic:** fix linkParser regexp to support multi-line link tags ([#1098](#1098)) ([863675e](863675e)), closes [#1097](#1097) * **gengapic:** fix service-specific constructor name in doc_file.go ([#1099](#1099)) ([4f80726](4f80726)), closes [#1077](#1077) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
For REGAPIC API calls, when the
rest-numeric-enums
plugin option is provided, include the new system parameter variant of$alt=json
that enables proto-json encoding of enums in server responses as integers -enum-encoding=int
. The default is false. Includes the bazel attribute as well.Also updates the README with option documentation.
Requested in http://b/232457394.