Skip to content

Commit 560d7c3

Browse files
committed
update proto validation
1 parent 91aa96c commit 560d7c3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

api/grpc/mpi/v1/command.pb.go

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/grpc/mpi/v1/command.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ message InstanceRuntime {
296296
// the process identifier
297297
int32 process_id = 1;
298298
// the binary path location
299-
string binary_path = 2 [(buf.validate.field).string.prefix = "/"];
299+
string binary_path = 2 [(buf.validate.field).string.pattern = "^\\/.*|^$"];
300300
// the config path location
301301
string config_path = 3 [(buf.validate.field).string.pattern = "^\\/.*|^$"];
302302
// more detailed runtime objects

0 commit comments

Comments
 (0)