Open DazWilkin opened 11 months ago
"Protobuf release 3.12 adds experimental support for optional fields in proto3".
optional
proto3
foo.proto:
foo.proto
syntax = "proto3"; message Foo { optional string id = 1; }
But:
protoc \ --proto_path=${PWD} \ --pubsub-schema_out=${PWD} \ --pubsub-schema_opt=message-encoding-json \ --pubsub-schema_opt=schema-syntax=proto3 \ ${PWD}/foo.proto
Yields:
foo.proto: is a proto3 file that contains optional fields, but code generator protoc-gen-pubsub-schema hasn't been updated to support optional fields in proto3. Please ask the owner of this code generator to support proto3 optional.
"Protobuf release 3.12 adds experimental support for
optional
fields inproto3
".foo.proto
:But:
Yields: