Add Variants to Templates

main
exsersewo 2 years ago
parent 83feedb59e
commit 99122bf508
Signed by: exsersewo
GPG Key ID: 9C6DDF9AC9BA14A0
  1. 3
      src/Managers/ImageManager.Generation.cs
  2. 3
      src/Managers/Models/ImageGenerationImage.cs

@ -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

Loading…
Cancel
Save