6 references to SerializeToNode
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonNodeSchemaExtensions.cs (1)
164schema[OpenApiSchemaKeywords.DefaultKeyword] = JsonSerializer.SerializeToNode(defaultValue, jsonTypeInfo);
Microsoft.Extensions.AI (2)
ChatCompletion\OpenTelemetryChatClient.cs (2)
458JsonSerializer.SerializeToNode(result, _jsonSerializerOptions.GetTypeInfo(result.GetType())) : 519JsonSerializer.SerializeToNode(fc.Arguments, _jsonSerializerOptions.GetTypeInfo(typeof(IDictionary<string, object?>))) :
Microsoft.Extensions.AI.Abstractions (1)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
717defaultValue = JsonSerializer.SerializeToNode(defaultVal, parameterTypeInfo);
Shared (1)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
717defaultValue = JsonSerializer.SerializeToNode(defaultVal, parameterTypeInfo);
System.Text.Json (1)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
248propertySchema.DefaultValue = JsonSerializer.SerializeToNode(parameterInfo.DefaultValue, property.JsonTypeInfo);