Skip to content

Commit

Permalink
Fix environmentResourceApi.GetAll()
Browse files Browse the repository at this point in the history
  • Loading branch information
jmigueprieto committed Dec 4, 2024
1 parent bab40a6 commit c34e8c2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Conductor/Api/EnvironmentResourceApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -597,9 +597,13 @@ public ApiResponse<Dictionary<string, string>> GetAllWithHttpInfo()
if (exception != null) throw exception;
}

var list = (List<Dictionary<string, string>>)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Dictionary<string, string>>));
var dictionary = list
.Where(item => item.ContainsKey("name") && item.ContainsKey("value"))
.ToDictionary(item => item["name"], item => item["value"]);
return new ApiResponse<Dictionary<string, string>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(Dictionary<string, string>)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Dictionary<string, string>)));
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
dictionary);
}

/// <summary>
Expand Down

0 comments on commit c34e8c2

Please sign in to comment.