Skip to content

Commit

Permalink
Element default not required
Browse files Browse the repository at this point in the history
  • Loading branch information
duc-cnzj committed Aug 10, 2023
1 parent 9fa6fea commit 66feede
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 39 deletions.
2 changes: 1 addition & 1 deletion internal/grpc/protos/mars/mars.proto
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ enum ElementType {
message Element {
string path = 1 [(validate.rules).string.min_bytes = 1];
ElementType type = 2 [(validate.rules).enum.defined_only = true];
string default = 3 [(validate.rules).string.min_bytes = 1];
string default = 3;
string description = 4;
repeated string select_values = 6;
uint32 order = 7;
Expand Down
55 changes: 27 additions & 28 deletions pkg/mars/mars.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 1 addition & 10 deletions pkg/mars/mars.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 66feede

Please sign in to comment.