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 of required fields #26

Open
junm-cloudnatix opened this issue Aug 27, 2021 · 0 comments
Open

Support of required fields #26

junm-cloudnatix opened this issue Aug 27, 2021 · 0 comments

Comments

@junm-cloudnatix
Copy link

protoc-gen-grpc-gateway-ts always put ? suffix for the fields, as fields in proto3 are basically optional. But I want the generator to support omitting the ? suffix when it's marked as non-optional in a way.

An idea is to consider a field is a required and If the field is specified as google.api.field_behavior = REQUIRED annotation (cf. https://github.com/googleapis/googleapis/blob/master/google/api/field_behavior.proto#L61 and an example https://github.com/googleapis/googleapis/blob/master/google/logging/v2/logging.proto#L154).

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

1 participant