protected JsonSchema InitialJsonSchema() { JsonSchema returnSchema = new JsonSchema() .Title(Name) .Description(Description) .Comment($"Generated with JsonSchemaBuilder"); if (Examples != null) { List <JsonValue> examplesOut = new List <JsonValue>(); foreach (T item in Examples) { examplesOut.Add(TAsJsonValue(item)); } returnSchema.Examples(examplesOut.ToArray()); } if (Enums != null) { List <JsonValue> enumsOut = new List <JsonValue>(); foreach (T item in Enums) { enumsOut.Add(TAsJsonValue(item)); } returnSchema.Enum(enumsOut.ToArray()); } return(returnSchema); }