Ensure CamelCase of enum serialization (#67)
This commit is contained in:
parent
67320b22d5
commit
9c500b4be7
1 changed files with 2 additions and 3 deletions
|
|
@ -1,5 +1,4 @@
|
|||
using Microsoft.Extensions.Logging;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace McpDotNet.Utils.Json;
|
||||
|
|
@ -21,7 +20,7 @@ internal static class JsonSerializerOptionsExtensions
|
|||
|
||||
// Add custom converters
|
||||
options.Converters.Add(new JsonRpcMessageConverter());
|
||||
options.Converters.Add(new JsonStringEnumConverter());
|
||||
options.Converters.Add(new JsonStringEnumConverter(JsonNamingPolicy.CamelCase));
|
||||
|
||||
// Configure general options
|
||||
options.PropertyNameCaseInsensitive = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue