17 references to ConvertSchemaToObject
Microsoft.Extensions.AI.Abstractions (17)
Utilities\AIJsonUtilities.Schema.Create.cs (17)
324
JsonObject obj =
ConvertSchemaToObject
(ref schema);
379
ConvertSchemaToObject
(ref schema)[DefaultPropertyName] = defaultValueNode;
385
ConvertSchemaToObject
(ref schema).InsertAtStart(DescriptionPropertyName, (JsonNode)localDescription);
391
ConvertSchemaToObject
(ref schema).InsertAtStart(SchemaPropertyName, (JsonNode)SchemaKeywordUri);
429
ConvertSchemaToObject
(ref schema)[TitlePropertyName] ??= displayNameAttribute.DisplayName;
436
ConvertSchemaToObject
(ref schema)[FormatPropertyName] ??= "email";
442
ConvertSchemaToObject
(ref schema)[FormatPropertyName] ??= "uri";
448
ConvertSchemaToObject
(ref schema)[PatternPropertyName] ??= regexAttribute.Pattern;
454
JsonObject obj =
ConvertSchemaToObject
(ref schema);
467
JsonObject obj =
ConvertSchemaToObject
(ref schema);
481
JsonObject obj =
ConvertSchemaToObject
(ref schema);
495
JsonObject obj =
ConvertSchemaToObject
(ref schema);
601
ConvertSchemaToObject
(ref schema)[ContentEncodingPropertyName] ??= "base64";
607
JsonObject obj =
ConvertSchemaToObject
(ref schema);
631
JsonObject obj =
ConvertSchemaToObject
(ref schema);
644
JsonObject obj =
ConvertSchemaToObject
(ref schema);
666
JsonObject obj =
ConvertSchemaToObject
(ref schema);