fix(15-02): gofmt journal settings validation rules

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jakub Zych
2026-10-06 18:42:39 +02:00
parent afd0a2cafc
commit ab06569641

View File

@@ -32,20 +32,20 @@ func (Settings) Fillable() []string {
func (Settings) Rules() map[string]string {
return map[string]string{
"show_all_posts": "boolean",
"use_rich_editor": "boolean",
"search_use_typesense": "boolean",
"search_title_weight": "nullable|integer|min:0|max:100",
"search_excerpt_weight": "nullable|integer|min:0|max:100",
"search_content_weight": "nullable|integer|min:0|max:100",
"rss_enabled": "boolean",
"rss_include_content": "boolean",
"rss_title": "nullable|string|max:255",
"rss_description": "nullable|string|max:1000",
"rss_language": "nullable|string|max:10",
"rss_copyright": "nullable|string|max:255",
"rss_image_url": "nullable|url|max:500",
"rss_posts_per_feed": "nullable|integer|min:1|max:100",
"show_all_posts": "boolean",
"use_rich_editor": "boolean",
"search_use_typesense": "boolean",
"search_title_weight": "nullable|integer|min:0|max:100",
"search_excerpt_weight": "nullable|integer|min:0|max:100",
"search_content_weight": "nullable|integer|min:0|max:100",
"rss_enabled": "boolean",
"rss_include_content": "boolean",
"rss_title": "nullable|string|max:255",
"rss_description": "nullable|string|max:1000",
"rss_language": "nullable|string|max:10",
"rss_copyright": "nullable|string|max:255",
"rss_image_url": "nullable|url|max:500",
"rss_posts_per_feed": "nullable|integer|min:1|max:100",
}
}