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