Skip to content

Commit b2d6481

Browse files
Update comments
1 parent 852ba0f commit b2d6481

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
@@ -40,8 +40,10 @@ private static JsonSerializerOptions CreateDefaultOptions()
4040
// Copy the configuration from the source generated context.
4141
JsonSerializerOptions options = new(JsonContext.Default.Options);
4242

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

0 commit comments

Comments
 (0)