10 references to TypeInfo
Microsoft.Extensions.AI.Abstractions (9)
Utilities\AIJsonSchemaCreateContext.cs (1)
88GetCustomAttr(TypeInfo.Type);
Utilities\AIJsonUtilities.Schema.Create.cs (8)
305if (ctx.TypeInfo.Type.IsEnum && objSchema.ContainsKey(EnumPropertyName) && !objSchema.ContainsKey(TypePropertyName)) 311if (ctx.TypeInfo.Kind is JsonTypeInfoKind.Enumerable && !objSchema.ContainsKey(ItemsPropertyName)) 338if (Nullable.GetUnderlyingType(ctx.TypeInfo.Type) is Type nullableElement) 360!ctx.TypeInfo.Type.IsValueType && 378JsonNode? defaultValueNode = JsonSerializer.SerializeToNode(defaultValue, ctx.TypeInfo); 563if (ctx.TypeInfo.Kind is JsonTypeInfoKind.Object && 571foreach (JsonPropertyInfo property in ctx.TypeInfo.Properties) 782if (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