Skip to content
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

code generator protoc-gen-grpc-gateway hasn't been updated to support optional fields in proto3 #332

Closed
devkevinyy opened this issue Aug 23, 2023 · 2 comments · Fixed by #419
Labels
bug Something isn't working

Comments

@devkevinyy
Copy link
Contributor

devkevinyy commented Aug 23, 2023

see grpc-ecosystem/grpc-gateway#1278
see namely/docker-protoc#361

An exception occurs when I use namely/protoc-all:1.51_2 with the parameter: --with-gateway to convert a proto file to a REST service:

... is a proto3 file that contains optional fields, but code generator protoc-gen-grpc-gateway hasn't been updated to support optional fields in proto3. Please ask the owner of this code generator to support proto3 optional.--grpc-gateway_out:
make: *** [Makefile:9: all] Error 1

Would like to update the protoc version in the namely/protoc-all mirror to support this.

@artek-koltun artek-koltun added Storage APIs or code related to storage area and removed Storage APIs or code related to storage area labels Aug 28, 2023
@glimchb glimchb added the bug Something isn't working label Sep 7, 2023
@glimchb
Copy link
Member

glimchb commented Sep 7, 2023

I tested with cdecoux/protoc-all:1.51_1 and it compiles fine now
waiting on namely/docker-protoc#361

@glimchb
Copy link
Member

glimchb commented Sep 11, 2023

trying to enable grpc gw for inventory #359
draft PR opiproject/opi-smbios-bridge#174

@chujieyang can you please take a look at 174 above ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants