Skip to content

Commit b5e20f6

Browse files
author
Toni Reina
authored
Update validation for Role.name (#193)
Role names can contain spaces.
1 parent c8a144f commit b5e20f6

8 files changed

Lines changed: 45 additions & 37 deletions

File tree

buf.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
version: v2
33
deps:
44
- name: buf.build/bufbuild/protovalidate
5-
commit: 6c6e0d3c608e4549802254a2eee81bc8
6-
digest: b5:a7ca081f38656fc0f5aaa685cc111d3342876723851b47ca6b80cbb810cbb2380f8c444115c495ada58fa1f85eff44e68dc54a445761c195acdb5e8d9af675b6
5+
commit: 52f32327d4b045a79293a6ad4e7e1236
6+
digest: b5:cbabc98d4b7b7b0447c9b15f68eeb8a7a44ef8516cb386ac5f66e7fd4062cd6723ed3f452ad8c384b851f79e33d26e7f8a94e2b807282b3def1cd966c7eace97
77
- name: buf.build/common/protos
88
commit: 8e61745a05234b5ca6985e15b97c61fd
99
digest: b5:8acdce29fe0c82245aee65361d7400aaa6b95df4a65ded8ff2465cafc09928039ab846ceff30b14bad7678c53a1d7554c76b868afde31d919f7b10f9e3c2898c

gen/go/qdrant/cloud/iam/v1/iam.pb.go

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

gen/openapiv2/qdrant/cloud/iam/v1/iam.swagger.json

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

gen/python/qdrant/cloud/iam/v1/iam_pb2.py

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

gen/typescript/buf/validate/validate_pb.d.ts

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

gen/typescript/qdrant/cloud/iam/v1/iam_pb.d.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/typescript/qdrant/cloud/iam/v1/iam_pb.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/qdrant/cloud/iam/v1/iam.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,11 +637,11 @@ message Role {
637637
// This is a required field.
638638
string account_id = 4 [(buf.validate.field).string = {uuid: true}];
639639
// The name of the role.
640-
// Name can only contain letters, numbers, underscores and dashes
640+
// Name can only contain letters, numbers, spaces, underscores and dashes.
641641
string name = 5 [(buf.validate.field).string = {
642642
max_len: 64
643643
min_len: 4
644-
pattern: "^[a-zA-Z0-9-_]+$"
644+
pattern: "^[\\w\\s-]+$"
645645
}];
646646
// The human readable description of this role.
647647
string description = 6 [(buf.validate.field).string = {max_len: 256}];

0 commit comments

Comments
 (0)