in JetBrains.AppStore.NotaryApi/HttpEx.cs [20:26]
public static async Task<T> ReadAsJsonBySchemaAsync<T>(this HttpContent content, T schema)
{
if (content.Headers.ContentType.MediaType is MediaTypeApplicationJson or MediaTypeNames.Application.Octet) // Note(k15tfu): in fact they are all of type application/octet-stream
return JsonConvert.DeserializeAnonymousType(await content.ReadAsStringAsync().ConfigureAwait(false), schema);
throw new Exception($"unexpected media type {content.Headers.ContentType.MediaType}");
}