Add Variants to Templates
This commit is contained in:
@@ -111,7 +111,8 @@ public static partial class ImageManager
|
||||
return GenerationEndpoints.Select(e => new ImageGenerationEndpointRead
|
||||
{
|
||||
Name = e.Name,
|
||||
SourcesRequired = e.SourcesRequired
|
||||
SourcesRequired = e.SourcesRequired,
|
||||
Variants = e.Variants.Select(v => v.Name)
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -21,6 +21,9 @@ public class ImageGenerationEndpointRead
|
||||
|
||||
[JsonPropertyName("sources"), ConfigurationKeyName("sources")]
|
||||
public int SourcesRequired { get; set; }
|
||||
|
||||
[JsonPropertyName("variants"), ConfigurationKeyName("variants")]
|
||||
public IEnumerable<string> Variants { get; set; }
|
||||
}
|
||||
|
||||
public class ImageGenerationEndpoint : ImageGenerationImage
|
||||
|
||||
Reference in New Issue
Block a user