google / google/protobuf.dart

proto3 hazzers always generated

Open
#767 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Dart
Stars
572
Forks
196
Avg merge
1h 59m
Merged PRs (30d)
2

Description

I'm not sure whether this is an issue or intended. In the generated dart code the `has..` method is always generated for a corresponding `message` field regardless of being labeled as `optional` or not. Does it make sense to generate those methods for none-optional fields?

Contributor guide

Open the contributing guide

Research direction

Inspect the generated Dart output for proto3 message fields and compare behavior for optional and non-optional fields. First establish from the generator's existing tests or documented protobuf semantics whether has.. methods are expected for non-optional fields; done means the intended behavior is confirmed and covered consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.