diff --git a/autosync/autosync/models/episode.py b/autosync/autosync/models/episode.py
index f428eade..6378e148 100644
--- a/autosync/autosync/models/episode.py
+++ b/autosync/autosync/models/episode.py
@@ -6,6 +6,7 @@ from autosync.models.show import Show
from .metadataid import MetadataID
+
@dataclass_json(letter_case=LetterCase.CAMEL)
@dataclass
class Episode:
diff --git a/back/Kyoo.sln b/back/Kyoo.sln
index 10bf4f8b..d8aac686 100644
--- a/back/Kyoo.sln
+++ b/back/Kyoo.sln
@@ -1,5 +1,5 @@
-Microsoft Visual Studio Solution File, Format Version 12.00
-#
+Microsoft Visual Studio Solution File, Format Version 12.00
+#
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Kyoo.Core", "src\Kyoo.Core\Kyoo.Core.csproj", "{0F8275B6-C7DD-42DF-A168-755C81B1C329}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kyoo.Abstractions", "src\Kyoo.Abstractions\Kyoo.Abstractions.csproj", "{BAB2CAE1-AC28-4509-AA3E-8DC75BD59220}"
@@ -14,8 +14,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kyoo.Host", "src\Kyoo.Host\
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kyoo.Meilisearch", "src\Kyoo.Meilisearch\Kyoo.Meilisearch.csproj", "{F8E6018A-FD51-40EB-99FF-A26BA59F2762}"
EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{787FB205-9D7E-4946-AFE0-BD68E286F569}"
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kyoo.RabbitMq", "src\Kyoo.RabbitMq\Kyoo.RabbitMq.csproj", "{B97AD4A8-E6E6-41CD-87DF-5F1326FD7198}"
EndProject
Global
@@ -64,18 +62,9 @@ Global
{F8E6018A-FD51-40EB-99FF-A26BA59F2762}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F8E6018A-FD51-40EB-99FF-A26BA59F2762}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F8E6018A-FD51-40EB-99FF-A26BA59F2762}.Release|Any CPU.Build.0 = Release|Any CPU
- {44F2208F-C015-4A01-8D6A-20F82437AFDB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {44F2208F-C015-4A01-8D6A-20F82437AFDB}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {44F2208F-C015-4A01-8D6A-20F82437AFDB}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {44F2208F-C015-4A01-8D6A-20F82437AFDB}.Release|Any CPU.Build.0 = Release|Any CPU
{B97AD4A8-E6E6-41CD-87DF-5F1326FD7198}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B97AD4A8-E6E6-41CD-87DF-5F1326FD7198}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B97AD4A8-E6E6-41CD-87DF-5F1326FD7198}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B97AD4A8-E6E6-41CD-87DF-5F1326FD7198}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
- GlobalSection(NestedProjects) = preSolution
- {0C8AA7EA-E723-4532-852F-35AA4E8AFED5} = {FEAE1B0E-D797-470F-9030-0EF743575ECC}
- {44F2208F-C015-4A01-8D6A-20F82437AFDB} = {BB39454F-53E4-4238-9659-A39638496FB3}
- {B97AD4A8-E6E6-41CD-87DF-5F1326FD7198} = {787FB205-9D7E-4946-AFE0-BD68E286F569}
- EndGlobalSection
EndGlobal
diff --git a/back/src/Kyoo.Core/Views/Helper/Serializers/JsonSerializerContract.cs b/back/src/Kyoo.Core/Views/Helper/Serializers/JsonSerializerContract.cs
deleted file mode 100644
index b3f5b0c7..00000000
--- a/back/src/Kyoo.Core/Views/Helper/Serializers/JsonSerializerContract.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-// // Kyoo - A portable and vast media library solution.
-// // Copyright (c) Kyoo.
-// //
-// // See AUTHORS.md and LICENSE file in the project root for full license information.
-// //
-// // Kyoo is free software: you can redistribute it and/or modify
-// // it under the terms of the GNU General Public License as published by
-// // the Free Software Foundation, either version 3 of the License, or
-// // any later version.
-// //
-// // Kyoo is distributed in the hope that it will be useful,
-// // but WITHOUT ANY WARRANTY; without even the implied warranty of
-// // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// // GNU General Public License for more details.
-// //
-// // You should have received a copy of the GNU General Public License
-// // along with Kyoo. If not, see .
-//
-// using System;
-// using System.Collections.Generic;
-// using System.Linq;
-// using System.Net.Http.Formatting;
-// using System.Reflection;
-// using Kyoo.Abstractions.Models;
-// using Kyoo.Abstractions.Models.Attributes;
-// using Microsoft.AspNetCore.Http;
-// using static System.Text.Json.JsonNamingPolicy;
-//
-// namespace Kyoo.Core.Api
-// {
-// ///
-// /// A custom json serializer that respects and
-// /// . It also handle via the
-// /// fields query parameter and items.
-// ///
-// public class JsonSerializerContract(IHttpContextAccessor? httpContextAccessor, MediaTypeFormatter formatter)
-// : JsonContractResolver(formatter)
-// {
-// ///
-// protected override JsonProperty CreateProperty(
-// MemberInfo member,
-// MemberSerialization memberSerialization
-// )
-// {
-// JsonProperty property = base.CreateProperty(member, memberSerialization);
-//
-// LoadableRelationAttribute? relation =
-// member.GetCustomAttribute();
-// if (relation != null)
-// {
-// if (httpContextAccessor != null)
-// {
-// property.ShouldSerialize = _ =>
-// {
-// if (
-// httpContextAccessor.HttpContext!.Items["fields"]
-// is not ICollection fields
-// )
-// return false;
-// return fields.Contains(member.Name);
-// };
-// }
-// else
-// property.ShouldSerialize = _ => true;
-// }
-// return property;
-// }
-// }
-// }