瀏覽代碼

Fixes dashboard style conversion

master
Savorboard 3 年之前
父節點
當前提交
d4d7d7732c
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. +6
    -1
      src/DotNetCore.CAP.Dashboard/JsonSerializeOptions.cs

+ 6
- 1
src/DotNetCore.CAP.Dashboard/JsonSerializeOptions.cs 查看文件

@@ -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…
取消
儲存