Skip to content

Commit

Permalink
feat(optimus): remove level prefix on enum validation level
Browse files Browse the repository at this point in the history
  • Loading branch information
oky.setiawan committed Dec 10, 2024
1 parent 9a7c10f commit d583994
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gotocompany/optimus/core/v1beta1/job_spec.proto
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,9 @@ message ValidateRequest {

message ValidateResponse {
enum Level {
LEVEL_UNSPECIFIED = 0;
LEVEL_WARNING = 1;
LEVEL_ERROR = 2;
UNSPECIFIED = 0;

Check failure on line 392 in gotocompany/optimus/core/v1beta1/job_spec.proto

View workflow job for this annotation

GitHub Actions / validate

Enum value name "UNSPECIFIED" should be prefixed with "LEVEL_".

Check failure on line 392 in gotocompany/optimus/core/v1beta1/job_spec.proto

View workflow job for this annotation

GitHub Actions / validate

Enum zero value name "UNSPECIFIED" should be suffixed with "_UNSPECIFIED".

Check failure on line 392 in gotocompany/optimus/core/v1beta1/job_spec.proto

View workflow job for this annotation

GitHub Actions / validate

Enum value name "UNSPECIFIED" should be prefixed with "LEVEL_".

Check failure on line 392 in gotocompany/optimus/core/v1beta1/job_spec.proto

View workflow job for this annotation

GitHub Actions / validate

Enum zero value name "UNSPECIFIED" should be suffixed with "_UNSPECIFIED".
WARNING = 1;

Check failure on line 393 in gotocompany/optimus/core/v1beta1/job_spec.proto

View workflow job for this annotation

GitHub Actions / validate

Enum value name "WARNING" should be prefixed with "LEVEL_".

Check failure on line 393 in gotocompany/optimus/core/v1beta1/job_spec.proto

View workflow job for this annotation

GitHub Actions / validate

Enum value name "WARNING" should be prefixed with "LEVEL_".
ERROR = 2;

Check failure on line 394 in gotocompany/optimus/core/v1beta1/job_spec.proto

View workflow job for this annotation

GitHub Actions / validate

Enum value name "ERROR" should be prefixed with "LEVEL_".

Check failure on line 394 in gotocompany/optimus/core/v1beta1/job_spec.proto

View workflow job for this annotation

GitHub Actions / validate

Enum value name "ERROR" should be prefixed with "LEVEL_".
}

message Result {
Expand Down

0 comments on commit d583994

Please sign in to comment.