mirror of
https://github.com/zitadel/zitadel.git
synced 2025-03-01 10:47:22 +00:00
fix: remove email validation for SearchUsers v2beta/users (#7855)
fix: remove email validation + homogeneous requirements
This commit is contained in:
parent
4f3564e4e9
commit
2254434692
@ -112,7 +112,7 @@ message EmailQuery {
|
|||||||
string email = 1 [
|
string email = 1 [
|
||||||
(validate.rules).string = {max_len: 200},
|
(validate.rules).string = {max_len: 200},
|
||||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
(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;
|
max_length: 200;
|
||||||
example: "\"gigi@zitadel.com\"";
|
example: "\"gigi@zitadel.com\"";
|
||||||
}
|
}
|
||||||
|
@ -311,7 +311,7 @@ message EmailQuery {
|
|||||||
string email_address = 1 [
|
string email_address = 1 [
|
||||||
(validate.rules).string = {max_len: 200},
|
(validate.rules).string = {max_len: 200},
|
||||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
(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;
|
max_length: 200;
|
||||||
example: "\"gigi@zitadel.com\"";
|
example: "\"gigi@zitadel.com\"";
|
||||||
}
|
}
|
||||||
|
@ -168,11 +168,10 @@ message DisplayNameQuery {
|
|||||||
// Query for users with a specific email.
|
// Query for users with a specific email.
|
||||||
message EmailQuery {
|
message EmailQuery {
|
||||||
string email_address = 1 [
|
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,
|
(google.api.field_behavior) = REQUIRED,
|
||||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
(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"
|
||||||
min_length: 1;
|
|
||||||
max_length: 200;
|
max_length: 200;
|
||||||
example: "\"gigi@zitadel.com\"";
|
example: "\"gigi@zitadel.com\"";
|
||||||
}
|
}
|
||||||
|
@ -122,10 +122,10 @@ message UsernameQuery {
|
|||||||
message EmailQuery {
|
message EmailQuery {
|
||||||
// Defines the email of the user to query for.
|
// Defines the email of the user to query for.
|
||||||
string address = 1 [
|
string address = 1 [
|
||||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
(validate.rules).string = {max_len: 200},
|
||||||
(google.api.field_behavior) = REQUIRED,
|
(google.api.field_behavior) = REQUIRED,
|
||||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||||
min_length: 1;
|
description: "email address of the user"
|
||||||
max_length: 200;
|
max_length: 200;
|
||||||
example: "\"gigi@zitadel.com\"";
|
example: "\"gigi@zitadel.com\"";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user