-
Notifications
You must be signed in to change notification settings - Fork 35
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
protoc-gen-ng: Optional/Required fields when using proto2 #44
Comments
Seems like the |
When using
|
Hi @isc30
It might make sense to remove the optional markers on the scalar fields. However, one still can assign them to undefined, can't one? |
When defining |
same issue here |
hi @isc30 the intention is clear; could you share your thoughts on how exactly you see this? What should be changed? What is desired output for relevant parts of the protobuf file? |
Hi, since proto2 seems to be working atm, i would get extra metadata on the fields to see if they were decorated as I tried building the repo but not sure how to debug the change. |
Closing in favour of #54 Proto 2 is not going to receive a lot of support anyway |
Hi, I'm aiming to avoid all the typescript errors regarding "everything is optional" in proto3 by using proto2 (where you can specify
optional
andrequired
).It seems like the plugin (protoc-gen-ng) isn't generating the typings properly for those cases, and still emits
string | undefined
signature.Any ideas how to fix this?
The text was updated successfully, but these errors were encountered: