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