mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 15:17:33 +00:00
Change MetadataValueFilter to bytes
This commit is contained in:
@@ -31,6 +31,11 @@ enum TimestampFilterMethod {
|
||||
TIMESTAMP_FILTER_METHOD_BEFORE_OR_EQUALS = 4;
|
||||
}
|
||||
|
||||
enum ByteFilterMethod {
|
||||
BYTE_FILTER_METHOD_EQUALS = 0;
|
||||
BYTE_FILTER_METHOD_NOT_EQUALS = 1;
|
||||
}
|
||||
|
||||
message PaginationRequest {
|
||||
// Starting point for retrieval, in combination of offset used to query a set list of objects.
|
||||
uint64 offset = 1 [
|
||||
|
@@ -65,17 +65,17 @@ message UserByMetadataSearchFilter {
|
||||
}
|
||||
|
||||
message MetadataValueFilter {
|
||||
string value = 1 [
|
||||
(validate.rules).string = {max_len: 200},
|
||||
bytes value = 1 [
|
||||
(validate.rules).bytes = {max_len: 200},
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"my value\""
|
||||
description: "A value matching the metadata values"
|
||||
example: "\"bXkgdmFsdWU=\""
|
||||
description: "A base64 encoded value"
|
||||
}
|
||||
];
|
||||
zitadel.filter.v2.TextFilterMethod method = 2 [
|
||||
zitadel.filter.v2.ByteFilterMethod method = 2 [
|
||||
(validate.rules).enum.defined_only = true,
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
description: "defines which text equality method is used";
|
||||
description: "defines which bytes equality method is used";
|
||||
}
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user