Skip to content

Commit 732d20d

Browse files
Update comments
1 parent bef80b6 commit 732d20d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ModelContextProtocol.Core/McpJsonUtilities.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ private static JsonSerializerOptions CreateDefaultOptions()
4141
// Copy the configuration from the source generated context.
4242
JsonSerializerOptions options = new(JsonContext.Default.Options);
4343

44-
// Chain with all supported types and converters from MEAI
44+
// Chain with all supported types from MEAI.
4545
options.TypeInfoResolverChain.Add(AIJsonUtilities.DefaultOptions.TypeInfoResolver!);
46+
47+
// Add a converter for user-defined enums, if reflection is enabled by default.
4648
if (JsonSerializer.IsReflectionEnabledByDefault)
4749
{
4850
options.Converters.Add(new UserDefinedJsonStringEnumConverter());

0 commit comments

Comments
 (0)