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

Set sensible defaults for structs #2

Merged
merged 1 commit into from
Jul 29, 2021
Merged

Set sensible defaults for structs #2

merged 1 commit into from
Jul 29, 2021

Conversation

zolakeith
Copy link
Collaborator

This commit updates the Message generator to ensure any repeated fields
are defined using an empty list when no default value is available. In
the case of :proto3 a default value a type-specific default is set as
per the protocol guides:

This commit updates the Message generator to ensure any repeated fields
are defined using an empty list when no default value is available. In
the case of :proto3 a default value a type-specific default is set as
per the protocol guides:

- https://developers.google.com/protocol-buffers/docs/proto?hl=en#optional
- https://developers.google.com/protocol-buffers/docs/proto3?hl=en#default
@zolakeith zolakeith merged commit 8c47468 into master Jul 29, 2021
@zolakeith zolakeith deleted the struct_defaults branch July 29, 2021 17:02
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

Successfully merging this pull request may close these issues.

2 participants