fix(15-02): gofmt journal settings validation rules
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -32,20 +32,20 @@ func (Settings) Fillable() []string {
|
|||||||
|
|
||||||
func (Settings) Rules() map[string]string {
|
func (Settings) Rules() map[string]string {
|
||||||
return map[string]string{
|
return map[string]string{
|
||||||
"show_all_posts": "boolean",
|
"show_all_posts": "boolean",
|
||||||
"use_rich_editor": "boolean",
|
"use_rich_editor": "boolean",
|
||||||
"search_use_typesense": "boolean",
|
"search_use_typesense": "boolean",
|
||||||
"search_title_weight": "nullable|integer|min:0|max:100",
|
"search_title_weight": "nullable|integer|min:0|max:100",
|
||||||
"search_excerpt_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",
|
"search_content_weight": "nullable|integer|min:0|max:100",
|
||||||
"rss_enabled": "boolean",
|
"rss_enabled": "boolean",
|
||||||
"rss_include_content": "boolean",
|
"rss_include_content": "boolean",
|
||||||
"rss_title": "nullable|string|max:255",
|
"rss_title": "nullable|string|max:255",
|
||||||
"rss_description": "nullable|string|max:1000",
|
"rss_description": "nullable|string|max:1000",
|
||||||
"rss_language": "nullable|string|max:10",
|
"rss_language": "nullable|string|max:10",
|
||||||
"rss_copyright": "nullable|string|max:255",
|
"rss_copyright": "nullable|string|max:255",
|
||||||
"rss_image_url": "nullable|url|max:500",
|
"rss_image_url": "nullable|url|max:500",
|
||||||
"rss_posts_per_feed": "nullable|integer|min:1|max:100",
|
"rss_posts_per_feed": "nullable|integer|min:1|max:100",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user