Ver código fonte

Fixes dashboard style conversion

master
Savorboard 3 anos atrás
pai
commit
d4d7d7732c
1 arquivos alterados com 6 adições e 1 exclusões
  1. +6
    -1
      src/DotNetCore.CAP.Dashboard/JsonSerializeOptions.cs

+ 6
- 1
src/DotNetCore.CAP.Dashboard/JsonSerializeOptions.cs Ver arquivo

@@ -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)
}
};
}
}

Carregando…
Cancelar
Salvar