Skip to content

Commit 8278a45

Browse files
committed
lint
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
1 parent c31402c commit 8278a45

1 file changed

Lines changed: 18 additions & 12 deletions

File tree

app/controlplane/api/workflowcontract/v1/crafting_schema.proto

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ option go_package = "github.com/chainloop-dev/chainloop/app/controlplane/api/wor
2424
// Schema definition provided by the user to the tool
2525
// that defines the schema of the workflowRun
2626
message CraftingSchema {
27-
option deprecated = true;
27+
option deprecated = true;
2828
// Version of the schema, do not confuse with the revision of the content
29-
string schema_version = 1 [(buf.validate.field).string.const = "v1", deprecated = true];
29+
string schema_version = 1 [
30+
(buf.validate.field).string.const = "v1",
31+
deprecated = true
32+
];
3033
repeated Material materials = 2 [deprecated = true];
3134
repeated string env_allow_list = 3 [deprecated = true];
3235
Runner runner = 4 [deprecated = true];
@@ -42,7 +45,7 @@ message CraftingSchema {
4245
repeated PolicyGroupAttachment policy_groups = 7 [deprecated = true];
4346

4447
message Runner {
45-
option deprecated = true;
48+
option deprecated = true;
4649
RunnerType type = 1 [
4750
(buf.validate.field).enum = {
4851
not_in: [0]
@@ -64,22 +67,25 @@ message CraftingSchema {
6467
}
6568

6669
message Material {
67-
option deprecated = true;
70+
option deprecated = true;
6871
MaterialType type = 1 [
6972
(buf.validate.field).enum = {
7073
not_in: [0]
7174
},
7275
(buf.validate.field).enum.defined_only = true,
7376
deprecated = true
7477
];
75-
string name = 2 [(buf.validate.field) = {
76-
// NOTE: validations can not be shared yet https://github.com/bufbuild/protovalidate/issues/51
77-
cel: {
78-
message: "must contain only lowercase letters, numbers, and hyphens."
79-
expression: "this.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?$')"
80-
id: "name.dns-1123"
81-
}
82-
}, deprecated = true];
78+
string name = 2 [
79+
(buf.validate.field) = {
80+
// NOTE: validations can not be shared yet https://github.com/bufbuild/protovalidate/issues/51
81+
cel: {
82+
message: "must contain only lowercase letters, numbers, and hyphens."
83+
expression: "this.matches('^[a-z0-9]([-a-z0-9]*[a-z0-9])?$')"
84+
id: "name.dns-1123"
85+
}
86+
},
87+
deprecated = true
88+
];
8389
bool optional = 3 [deprecated = true];
8490
// If a material is set as output it will get added to the subject in the statement
8591
bool output = 4 [deprecated = true];

0 commit comments

Comments
 (0)