ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.205.0

This commit is contained in:
speakeasybot
2024-03-10 00:41:45 +00:00
parent f8e29c091a
commit 1ee5f5349e
147 changed files with 4104 additions and 1755 deletions

View File

@@ -15,7 +15,16 @@ namespace PlexAPI.Utils
{
internal class EnumSerializer : JsonConverter
{
public override bool CanConvert(System.Type objectType) => objectType.IsEnum;
public override bool CanConvert(System.Type objectType)
{
var nullableType = Nullable.GetUnderlyingType(objectType);
if (nullableType != null)
{
return nullableType.IsEnum;
}
return objectType.IsEnum;
}
public override bool CanRead => true;