fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! adding more tests for ListOrganization()

This commit is contained in:
Iraq Jaber
2025-05-07 09:02:56 +02:00
parent d5602e59a1
commit 4eb67cebcc
5 changed files with 35 additions and 45 deletions

View File

@@ -20,7 +20,7 @@ option go_package = "github.com/zitadel/zitadel/pkg/grpc/org/v2beta;org";
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
info: {
title: "Organization Service (Beta)";
title: "Organization Service";
version: "2.0-beta";
description: "This API is intended to manage organizations in a ZITADEL instance. This project is in beta state. It can AND will continue breaking until the services provide the same functionality as the current login.";
contact:{
@@ -106,7 +106,7 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
}
};
service OrganizationServiceV2beta {
service OrganizationService {
// Create Organization
//
@@ -432,7 +432,13 @@ message CreateOrganizationResponse{
optional string email_code = 2;
optional string phone_code = 3;
}
zitadel.object.v2beta.Details details = 1;
// The timestamp of the organization was created.
google.protobuf.Timestamp created_date = 1 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"2024-12-18T07:50:47.492Z\"";
}
];
// Organization ID of the newly created organization.
string id = 2 [
(validate.rules).string = {min_len: 1, max_len: 200},
(google.api.field_behavior) = REQUIRED,
@@ -440,7 +446,6 @@ message CreateOrganizationResponse{
min_length: 1;
max_length: 200;
example: "\"69629012906488334\"";
description: "Organization ID of the newly created organization."
}
];
repeated CreatedAdmin created_admins = 3;
@@ -589,7 +594,12 @@ message AddOrganizationDomainRequest {
}
message AddOrganizationDomainResponse {
zitadel.object.v2beta.Details details = 1;
// The timestamp of the organization was created.
google.protobuf.Timestamp created_date = 1 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"2024-12-18T07:50:47.492Z\"";
}
];
}
message ListOrganizationDomainsRequest {