2 writes to Enum
Microsoft.Extensions.AI.Abstractions (2)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (2)
669
new JsonSchema {
Enum
= new() { (JsonNode)"NaN", (JsonNode)"Infinity", (JsonNode)"-Infinity" } },
761
return new() {
Enum
= enumValues };
5 references to Enum
Microsoft.Extensions.AI.Abstractions (5)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (2)
228
if (schema.
Enum
!= null)
231
schema.
Enum
.Add(null); // Append null to the enum array.
src\Shared\JsonSchemaExporter\JsonSchemaExporter.JsonSchema.cs (3)
301
Count(
Enum
!= null);
413
if (
Enum
!= null)
415
objSchema.Add(JsonSchemaConstants.EnumPropertyName,
Enum
);