1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-26 17:37:36 +01:00

DefaultContractResolver for pascal cased JSON. RTM moved to camelCase

This commit is contained in:
Kyle Spearrin 2016-07-13 19:24:26 -04:00
parent 6e634d8000
commit 0620fb7a86

View File

@ -25,6 +25,7 @@ using Newtonsoft.Json;
using System.Linq;
using Microsoft.AspNetCore.Mvc.Formatters;
using Microsoft.Net.Http.Headers;
using Newtonsoft.Json.Serialization;
namespace Bit.Api
{
@ -155,7 +156,7 @@ namespace Bit.Api
{
jsonFormatter.SupportedMediaTypes.Add(textPlainMediaType);
}
});
}).AddJsonOptions(options => options.SerializerSettings.ContractResolver = new DefaultContractResolver()); ;
}
public void Configure(