Skip to content

Commit 4be9f79

Browse files
authored
feat(serverless_jobs): add validation for field name (#1025)
1 parent d1a22d9 commit 4be9f79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/clients/src/api/jobs/v1alpha1/validation-rules.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const CreateJobDefinitionRequest = {
1313
greaterThan: 0,
1414
},
1515
name: {
16-
minLength: 3,
16+
pattern: /^[A-Za-z0-9-_]{3,50}$/,
1717
},
1818
}
1919

@@ -49,6 +49,6 @@ export const UpdateJobDefinitionRequest = {
4949
greaterThan: 0,
5050
},
5151
name: {
52-
minLength: 3,
52+
pattern: /^[A-Za-z0-9-_]{3,50}$/,
5353
},
5454
}

0 commit comments

Comments
 (0)