2 writes to Enum
System.Text.Json (2)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (1)
516
return new() {
Enum
= enumValues };
System\Text\Json\Serialization\Converters\Value\JsonPrimitiveConverter.cs (1)
63
new JsonSchema {
Enum
= [(JsonNode)"NaN", (JsonNode)"Infinity", (JsonNode)"-Infinity"] },
5 references to Enum
System.Text.Json (5)
System\Text\Json\Schema\JsonSchema.cs (3)
121
Count(
Enum
!= null);
222
if (
Enum
!= null)
224
objSchema.Add(EnumPropertyName,
Enum
);
System\Text\Json\Schema\JsonSchemaExporter.cs (2)
195
if (schema.
Enum
!= null)
198
schema.
Enum
.Add(null); // Append null to the enum array.