обновление json parse
All checks were successful
Release / pack-and-publish (release) Successful in 45s
All checks were successful
Release / pack-and-publish (release) Successful in 45s
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
using YandexMusic.API.Converters;
|
||||
using YandexMusic.API.Models.Common;
|
||||
|
||||
namespace YandexMusic.API.Common.Providers;
|
||||
@@ -14,7 +15,7 @@ public abstract class CommonRequestProvider : IRequestProvider
|
||||
private static readonly JsonSerializerOptions JsonOptions = new()
|
||||
{
|
||||
PropertyNameCaseInsensitive = true,
|
||||
Converters = { new JsonStringEnumConverter(JsonNamingPolicy.CamelCase) }
|
||||
Converters = { new JsonStringEnumConverter(JsonNamingPolicy.KebabCaseLower), new IntToStringConverter() }
|
||||
};
|
||||
|
||||
/// <summary>Инициализирует новый экземпляр провайдера.</summary>
|
||||
|
||||
Reference in New Issue
Block a user