Open ByteGen opened 3 years ago
Yes please! I was under the mistaken impression that proto3 doesn't support has_field for primitives, until I found out that they added support as long as the field is marked optional
. Now that I want to use it, I have this amazing plugin complaining about my .protos.
FWIW I have the same issue in v 0.13 (and some recent reviews on IJ marketplace complain about the same).
Describe the bug Since protoc version 3.15, it enabled the use of
optional
in proto3 by default. See field_presence. But this plugin still reports errors when usingoptional
.To Reproduce Steps to reproduce the behavior:
Expected behavior No error, no warning.
Screenshots
Plugin (please complete the following information):
Additional context The check action may be as follows: