fix: remove email validation for SearchUsers v2beta/users (#7855)

fix: remove email validation + homogeneous requirements
This commit is contained in:
Miguel Cabrerizo 2024-04-26 16:00:47 +02:00 committed by GitHub
parent 4f3564e4e9
commit 2254434692
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 7 deletions

View File

@ -112,7 +112,7 @@ message EmailQuery {
string email = 1 [
(validate.rules).string = {max_len: 200},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "email address of the user. (spec: https://tools.ietf.org/html/rfc2822#section-3.4.1)"
description: "email address of the user"
max_length: 200;
example: "\"gigi@zitadel.com\"";
}

View File

@ -311,7 +311,7 @@ message EmailQuery {
string email_address = 1 [
(validate.rules).string = {max_len: 200},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "email address of the user. (spec: https://tools.ietf.org/html/rfc2822#section-3.4.1)"
description: "email address of the user"
max_length: 200;
example: "\"gigi@zitadel.com\"";
}

View File

@ -168,11 +168,10 @@ message DisplayNameQuery {
// Query for users with a specific email.
message EmailQuery {
string email_address = 1 [
(validate.rules).string = {min_len: 1, max_len: 200, email: true},
(validate.rules).string = {max_len: 200},
(google.api.field_behavior) = REQUIRED,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "email address of the user. (spec: https://tools.ietf.org/html/rfc2822#section-3.4.1)"
min_length: 1;
description: "email address of the user"
max_length: 200;
example: "\"gigi@zitadel.com\"";
}

View File

@ -122,10 +122,10 @@ message UsernameQuery {
message EmailQuery {
// Defines the email of the user to query for.
string address = 1 [
(validate.rules).string = {min_len: 1, max_len: 200},
(validate.rules).string = {max_len: 200},
(google.api.field_behavior) = REQUIRED,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
min_length: 1;
description: "email address of the user"
max_length: 200;
example: "\"gigi@zitadel.com\"";
}