瀏覽代碼

fix: plugin extensions

Yeuoly 1 年之前
父節點
當前提交
b7015bd597
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      internal/types/entities/plugin_entities/plugin_declaration.go

+ 3 - 3
internal/types/entities/plugin_entities/plugin_declaration.go

@@ -127,9 +127,9 @@ type PluginMeta struct {
 }
 
 type PluginExtensions struct {
-	Tools     []string `json:"tools" yaml:"tools,omitempty" validate:"required,dive,max=128"`
-	Models    []string `json:"models" yaml:"models,omitempty" validate:"required,dive,max=128"`
-	Endpoints []string `json:"endpoints" yaml:"endpoints,omitempty" validate:"required,dive,max=128"`
+	Tools     []string `json:"tools" yaml:"tools,omitempty" validate:"omitempty,dive,max=128"`
+	Models    []string `json:"models" yaml:"models,omitempty" validate:"omitempty,dive,max=128"`
+	Endpoints []string `json:"endpoints" yaml:"endpoints,omitempty" validate:"omitempty,dive,max=128"`
 }
 
 type PluginDeclarationWithoutAdvancedFields struct {