17 references to ConvertSchemaToObject
Microsoft.Extensions.AI.Abstractions (17)
Utilities\AIJsonUtilities.Schema.Create.cs (17)
309
JsonObject obj =
ConvertSchemaToObject
(ref schema);
364
ConvertSchemaToObject
(ref schema)[DefaultPropertyName] = defaultValueNode;
370
ConvertSchemaToObject
(ref schema).InsertAtStart(DescriptionPropertyName, (JsonNode)localDescription);
376
ConvertSchemaToObject
(ref schema).InsertAtStart(SchemaPropertyName, (JsonNode)SchemaKeywordUri);
413
ConvertSchemaToObject
(ref schema)[TitlePropertyName] ??= displayNameAttribute.DisplayName;
419
ConvertSchemaToObject
(ref schema)[FormatPropertyName] ??= "email";
424
ConvertSchemaToObject
(ref schema)[FormatPropertyName] ??= "uri";
429
ConvertSchemaToObject
(ref schema)[PatternPropertyName] ??= regexAttribute.Pattern;
434
JsonObject obj =
ConvertSchemaToObject
(ref schema);
446
JsonObject obj =
ConvertSchemaToObject
(ref schema);
459
JsonObject obj =
ConvertSchemaToObject
(ref schema);
472
JsonObject obj =
ConvertSchemaToObject
(ref schema);
543
ConvertSchemaToObject
(ref schema)[ContentEncodingPropertyName] ??= "base64";
548
JsonObject obj =
ConvertSchemaToObject
(ref schema);
572
JsonObject obj =
ConvertSchemaToObject
(ref schema);
584
JsonObject obj =
ConvertSchemaToObject
(ref schema);
619
JsonObject obj =
ConvertSchemaToObject
(ref schema);