easyp-tech / easyp

Apache License 2.0
77 stars 3 forks source link

[BUG] ENUM_ZERO_VALUE_SUFFIX validation #87

Closed esqp closed 2 months ago

esqp commented 3 months ago

Enums zero value does not check correctly when there are multiple underscores

config easyp.yaml: enum_zero_value_suffix: UNSPECIFIED

proto file:

enum JobStatus {
  JOB_STATUS_UNSPECIFIED = 0;
  ...
}

Error: JOB_STATUS_UNSPECIFIED enum zero value suffix is not valid (ENUM_ZERO_VALUE_SUFFIX)