mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
DefaultContractResolver for pascal cased JSON. RTM moved to camelCase
This commit is contained in:
parent
6e634d8000
commit
0620fb7a86
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user