Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,12 @@ protected static T GetObjectFromResponse<T, TC>(Uri uri, IWebProxy proxy, Dictio
Amazon.Util.Internal.JsonSerializerContext,
#endif
new()
where T : SecurityBase
{
string json = GetContents(uri, proxy, headers);
return JsonSerializerHelper.Deserialize<T>(json, new TC());
var result = JsonSerializerHelper.Deserialize<T>(json, new TC());
ValidateResponse(result);
return result;
}

protected static void ValidateResponse(SecurityBase response)
Expand Down