Allow selecting transcript variants for rendering
This commit is contained in:
@@ -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)")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user