Browse Source

Fixes dashboard style conversion

master
Savorboard 3 years ago
parent
commit
d4d7d7732c
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/DotNetCore.CAP.Dashboard/JsonSerializeOptions.cs

+ 6
- 1
src/DotNetCore.CAP.Dashboard/JsonSerializeOptions.cs View File

@@ -1,4 +1,5 @@
using System.Text.Json;
using System.Text.Json.Serialization;

namespace DotNetCore.CAP.Dashboard
{
@@ -6,7 +7,11 @@ namespace DotNetCore.CAP.Dashboard
{
public static JsonSerializerOptions Default = new JsonSerializerOptions
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
Converters =
{
new JsonStringEnumConverter(JsonNamingPolicy.CamelCase)
}
};
}
}

Loading…
Cancel
Save