17 references to ConvertSchemaToObject
Microsoft.Extensions.AI.Abstractions (17)
Utilities\AIJsonUtilities.Schema.Create.cs (17)
307
JsonObject obj =
ConvertSchemaToObject
(ref schema);
347
ConvertSchemaToObject
(ref schema)[DefaultPropertyName] = defaultValueNode;
353
ConvertSchemaToObject
(ref schema).InsertAtStart(DescriptionPropertyName, (JsonNode)localDescription);
359
ConvertSchemaToObject
(ref schema).InsertAtStart(SchemaPropertyName, (JsonNode)SchemaKeywordUri);
396
ConvertSchemaToObject
(ref schema)[TitlePropertyName] ??= displayNameAttribute.DisplayName;
402
ConvertSchemaToObject
(ref schema)[FormatPropertyName] ??= "email";
407
ConvertSchemaToObject
(ref schema)[FormatPropertyName] ??= "uri";
412
ConvertSchemaToObject
(ref schema)[PatternPropertyName] ??= regexAttribute.Pattern;
417
JsonObject obj =
ConvertSchemaToObject
(ref schema);
429
JsonObject obj =
ConvertSchemaToObject
(ref schema);
442
JsonObject obj =
ConvertSchemaToObject
(ref schema);
455
JsonObject obj =
ConvertSchemaToObject
(ref schema);
526
ConvertSchemaToObject
(ref schema)[ContentEncodingPropertyName] ??= "base64";
531
JsonObject obj =
ConvertSchemaToObject
(ref schema);
555
JsonObject obj =
ConvertSchemaToObject
(ref schema);
567
JsonObject obj =
ConvertSchemaToObject
(ref schema);
602
JsonObject obj =
ConvertSchemaToObject
(ref schema);