diff --git a/back/src/Kyoo.Abstractions/Models/Resources/Show.cs b/back/src/Kyoo.Abstractions/Models/Resources/Show.cs
index 117d5069..a9c8b832 100644
--- a/back/src/Kyoo.Abstractions/Models/Resources/Show.cs
+++ b/back/src/Kyoo.Abstractions/Models/Resources/Show.cs
@@ -129,7 +129,6 @@ namespace Kyoo.Abstractions.Models
///
/// The ID of the Studio that made this show.
///
- [JsonIgnore]
public Guid? StudioId { get; set; }
///
diff --git a/back/src/Kyoo.Abstractions/Models/Resources/WatchStatus.cs b/back/src/Kyoo.Abstractions/Models/Resources/WatchStatus.cs
index 53543b32..38b73cbd 100644
--- a/back/src/Kyoo.Abstractions/Models/Resources/WatchStatus.cs
+++ b/back/src/Kyoo.Abstractions/Models/Resources/WatchStatus.cs
@@ -57,7 +57,6 @@ namespace Kyoo.Abstractions.Models
///
/// The ID of the user that started watching this episode.
///
- [SerializeIgnore]
public Guid UserId { get; set; }
///
@@ -69,7 +68,6 @@ namespace Kyoo.Abstractions.Models
///
/// The ID of the movie started.
///
- [SerializeIgnore]
public Guid MovieId { get; set; }
///
@@ -114,7 +112,6 @@ namespace Kyoo.Abstractions.Models
///
/// The ID of the user that started watching this episode.
///
- [SerializeIgnore]
public Guid UserId { get; set; }
///
@@ -126,7 +123,6 @@ namespace Kyoo.Abstractions.Models
///
/// The ID of the episode started.
///
- [SerializeIgnore]
public Guid? EpisodeId { get; set; }
///
@@ -171,7 +167,6 @@ namespace Kyoo.Abstractions.Models
///
/// The ID of the user that started watching this episode.
///
- [SerializeIgnore]
public Guid UserId { get; set; }
///
@@ -183,7 +178,6 @@ namespace Kyoo.Abstractions.Models
///
/// The ID of the show started.
///
- [SerializeIgnore]
public Guid ShowId { get; set; }
///
@@ -213,7 +207,6 @@ namespace Kyoo.Abstractions.Models
///
/// The ID of the episode started.
///
- [SerializeIgnore]
public Guid? NextEpisodeId { get; set; }
///
diff --git a/back/src/Kyoo.Core/CoreModule.cs b/back/src/Kyoo.Core/CoreModule.cs
index 13ed6b54..73b97dd9 100644
--- a/back/src/Kyoo.Core/CoreModule.cs
+++ b/back/src/Kyoo.Core/CoreModule.cs
@@ -96,7 +96,7 @@ namespace Kyoo.Core
.AddJsonOptions(x =>
{
x.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter());
- x.JsonSerializerOptions.TypeInfoResolver = new PolymorphicTypeResolver();
+ x.JsonSerializerOptions.TypeInfoResolver = new WithKindResolver();
x.JsonSerializerOptions.PropertyNamingPolicy = JsonNamingPolicy.CamelCase;
})
.AddDataAnnotations()
diff --git a/back/src/Kyoo.Core/Views/Helper/Serializers/TypeInfoResolver.cs b/back/src/Kyoo.Core/Views/Helper/Serializers/WithKindResolver.cs
similarity index 96%
rename from back/src/Kyoo.Core/Views/Helper/Serializers/TypeInfoResolver.cs
rename to back/src/Kyoo.Core/Views/Helper/Serializers/WithKindResolver.cs
index 5939d726..7c120aae 100644
--- a/back/src/Kyoo.Core/Views/Helper/Serializers/TypeInfoResolver.cs
+++ b/back/src/Kyoo.Core/Views/Helper/Serializers/WithKindResolver.cs
@@ -26,7 +26,7 @@ using static System.Text.Json.JsonNamingPolicy;
namespace Kyoo.Core.Api;
-public class PolymorphicTypeResolver : DefaultJsonTypeInfoResolver
+public class WithKindResolver : DefaultJsonTypeInfoResolver
{
public override JsonTypeInfo GetTypeInfo(Type type, JsonSerializerOptions options)
{