17 references to ConvertSchemaToObject
Microsoft.Extensions.AI.Abstractions (17)
Utilities\AIJsonUtilities.Schema.Create.cs (17)
315
JsonObject obj =
ConvertSchemaToObject
(ref schema);
370
ConvertSchemaToObject
(ref schema)[DefaultPropertyName] = defaultValueNode;
376
ConvertSchemaToObject
(ref schema).InsertAtStart(DescriptionPropertyName, (JsonNode)localDescription);
382
ConvertSchemaToObject
(ref schema).InsertAtStart(SchemaPropertyName, (JsonNode)SchemaKeywordUri);
420
ConvertSchemaToObject
(ref schema)[TitlePropertyName] ??= displayNameAttribute.DisplayName;
427
ConvertSchemaToObject
(ref schema)[FormatPropertyName] ??= "email";
433
ConvertSchemaToObject
(ref schema)[FormatPropertyName] ??= "uri";
439
ConvertSchemaToObject
(ref schema)[PatternPropertyName] ??= regexAttribute.Pattern;
445
JsonObject obj =
ConvertSchemaToObject
(ref schema);
458
JsonObject obj =
ConvertSchemaToObject
(ref schema);
472
JsonObject obj =
ConvertSchemaToObject
(ref schema);
486
JsonObject obj =
ConvertSchemaToObject
(ref schema);
592
ConvertSchemaToObject
(ref schema)[ContentEncodingPropertyName] ??= "base64";
598
JsonObject obj =
ConvertSchemaToObject
(ref schema);
622
JsonObject obj =
ConvertSchemaToObject
(ref schema);
635
JsonObject obj =
ConvertSchemaToObject
(ref schema);
657
JsonObject obj =
ConvertSchemaToObject
(ref schema);