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

Support for optional in proto3 #41

Open
nilsreichardt opened this issue May 27, 2021 · 1 comment
Open

Support for optional in proto3 #41

nilsreichardt opened this issue May 27, 2021 · 1 comment

Comments

@nilsreichardt
Copy link

Description

If I'm using proto3 and try to use optional I get this error:

is a proto3 file that contains optional fields, but code generator protoc-gen-firebase_rules hasn't been updated to support optional fields in proto3. Please ask the owner of this code generator to support proto3 optional.--firebase_rules_out

My proto file:

syntax = "proto3";

message User {
    optional string name = 1;
}
@colin-williams
Copy link

I wonder why it doesn't support optional. Does this represent a challenge to implement?

Aren't optional values pretty important in regards to protobuf? For example isn't one reasonable way to "version" messages to use the optional keyword for future versions of a message when adding fields?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants