From f0bbfa2b17687187b12ff6fd498c8e56d69ba1d1 Mon Sep 17 00:00:00 2001 From: Theo Bennett Date: Fri, 20 Nov 2026 17:01:15 +0600 Subject: [PATCH] Accept fileType walkthrough for docs --- pkg/config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index d9e6170..77fa86b 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -653,7 +653,7 @@ func (c *Config) Validate() error { } } - validFileTypes := map[string]bool{"pdf": true, "html": true, "markdown": true, "doc": true, "txt": true, "image": true, "video": true, "audio": true, "other": true} + validFileTypes := map[string]bool{"pdf": true, "html": true, "markdown": true, "doc": true, "txt": true, "image": true, "video": true, "audio": true, "walkthrough": true, "other": true} for i, doc := range c.Docs { if doc.Name == "" { problems = append(problems, fmt.Sprintf("docs[%d].name is required", i)) @@ -664,7 +664,7 @@ func (c *Config) Validate() error { problems = append(problems, fmt.Sprintf("docs[%d].path file does not exist: %s", i, doc.Path)) } if doc.FileType != "" && !validFileTypes[doc.FileType] { - problems = append(problems, fmt.Sprintf("docs[%d].fileType must be one of: pdf, html, markdown, doc, txt, image, video, audio, other", i)) + problems = append(problems, fmt.Sprintf("docs[%d].fileType must be one of: pdf, html, markdown, doc, txt, image, video, audio, walkthrough, other", i)) } }