mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-22 07:02:27 -04:00
Clean up kind handling in the front
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
// along with Kyoo. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kyoo.Abstractions.Controllers;
|
||||
using Kyoo.Abstractions.Models.Attributes;
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Security.Claims;
|
||||
using System.Threading.Tasks;
|
||||
using Kyoo.Abstractions.Controllers;
|
||||
using Kyoo.Abstractions.Models;
|
||||
|
||||
@@ -25,6 +25,7 @@ using Kyoo.Abstractions.Models.Attributes;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
using static System.Text.Json.JsonNamingPolicy;
|
||||
|
||||
namespace Kyoo.Core.Api
|
||||
{
|
||||
@@ -99,7 +100,7 @@ namespace Kyoo.Core.Api
|
||||
PropertyName = "kind",
|
||||
UnderlyingName = "kind",
|
||||
PropertyType = typeof(string),
|
||||
ValueProvider = new FixedValueProvider(type.Name),
|
||||
ValueProvider = new FixedValueProvider(CamelCase.ConvertName(type.Name)),
|
||||
Readable = true,
|
||||
Writable = false,
|
||||
TypeNameHandling = TypeNameHandling.None,
|
||||
|
||||
Reference in New Issue
Block a user