10 references to TypeInfo
Microsoft.Extensions.AI.Abstractions (9)
Utilities\AIJsonSchemaCreateContext.cs (1)
88GetCustomAttr(TypeInfo.Type);
Utilities\AIJsonUtilities.Schema.Create.cs (8)
296if (ctx.TypeInfo.Type.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(TypePropertyName)) 302if (ctx.TypeInfo.Kind is JsonTypeInfoKind.Enumerable && !objSchema.ContainsKey(ItemsPropertyName)) 329if (Nullable.GetUnderlyingType(ctx.TypeInfo.Type) is Type nullableElement) 351!ctx.TypeInfo.Type.IsValueType && 369JsonNode? defaultValueNode = JsonSerializer.SerializeToNode(defaultValue, ctx.TypeInfo); 554if (ctx.TypeInfo.Kind is JsonTypeInfoKind.Object && 562foreach (JsonPropertyInfo property in ctx.TypeInfo.Properties) 773if (ctx.TypeInfo.NumberHandling is not JsonNumberHandling.Strict && schema["type"] is JsonArray typeArray)
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
272return context.TypeInfo.Type == typeof(int) && context.GetCustomAttribute<DescriptionAttribute>() is DescriptionAttribute attr