From c34e8c2b8da185ff80f748ded27ece47b769d9c3 Mon Sep 17 00:00:00 2001 From: Miguel Prieto Date: Wed, 4 Dec 2024 18:25:30 -0300 Subject: [PATCH] Fix environmentResourceApi.GetAll() --- Conductor/Api/EnvironmentResourceApi.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Conductor/Api/EnvironmentResourceApi.cs b/Conductor/Api/EnvironmentResourceApi.cs index 60b029a..732a4ea 100644 --- a/Conductor/Api/EnvironmentResourceApi.cs +++ b/Conductor/Api/EnvironmentResourceApi.cs @@ -597,9 +597,13 @@ public ApiResponse> GetAllWithHttpInfo() if (exception != null) throw exception; } + var list = (List>)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List>)); + var dictionary = list + .Where(item => item.ContainsKey("name") && item.ContainsKey("value")) + .ToDictionary(item => item["name"], item => item["value"]); return new ApiResponse>(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (Dictionary)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary))); + localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), + dictionary); } ///