Skip to content

Commit f72cafa

Browse files
authored
chore: Add UI validations (#173)
1 parent c3ddc88 commit f72cafa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/simple-sa/metadata.display.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ spec:
3636
name: display_name
3737
title: Display Name
3838
level: 1
39+
regexValidation: ^.{1,100}$
40+
validation: Display name must be between 1 and 100 characters.
3941
name:
4042
name: name
4143
title: Name
@@ -47,3 +49,5 @@ spec:
4749
project_roles:
4850
name: project_roles
4951
title: Project Roles
52+
regexValidation: "^(roles/[a-zA-Z0-9_.]+|(projects/[a-z][a-z0-9-]{4,28}[a-z0-9]|organizations/[0-9]+)/roles/[a-zA-Z0-9_]+)$"
53+
validation: Role must be a valid Google Cloud IAM role name, in the format of 'roles/{role_name}'.

0 commit comments

Comments
 (0)