Allow selecting transcript variants for rendering

This commit is contained in:
2026-12-02 15:09:35 +00:00
parent cf8fd71a83
commit eb146d3298
13 changed files with 219 additions and 142 deletions

View File

@@ -4,6 +4,8 @@ import (
"fmt"
"net/url"
"strings"
"gitea.maximumdirect.net/eric/narratio/internal/artifactmodel"
)
func validateNotification(cfg NotificationConfig) error {
@@ -63,6 +65,9 @@ func validateRender(cfg *RenderConfig) error {
if cfg == nil {
return nil
}
if _, err := artifactmodel.SelectRenderVariants(cfg.Variants); err != nil {
return fmt.Errorf("pipeline.render.variants: %w", err)
}
if cfg.Enabled == nil {
return fmt.Errorf("pipeline.render.enabled must be set (defaults should populate this)")
}