diff --git a/nebius/ai/v1/endpoint.proto b/nebius/ai/v1/endpoint.proto index c71df01..55dccf2 100644 --- a/nebius/ai/v1/endpoint.proto +++ b/nebius/ai/v1/endpoint.proto @@ -127,7 +127,10 @@ message EndpointSpec { }; // The name of the environment variable. - string name = 1 [(buf.validate.field).required = true]; + string name = 1 [(buf.validate.field) = { + string: {pattern: "^[a-zA-Z_][a-zA-Z0-9_]*$"} + required: true + }]; // Environment variable value. // Mutually exclusive with `mysterybox_secret`. diff --git a/nebius/ai/v1/job.proto b/nebius/ai/v1/job.proto index 7589b38..b50465a 100644 --- a/nebius/ai/v1/job.proto +++ b/nebius/ai/v1/job.proto @@ -114,7 +114,10 @@ message JobSpec { }; // The name of the environment variable. - string name = 1 [(buf.validate.field).required = true]; + string name = 1 [(buf.validate.field) = { + string: {pattern: "^[a-zA-Z_][a-zA-Z0-9_]*$"} + required: true + }]; // Environment variable value. // Mutually exclusive with `mysterybox_secret`.