Browse Source

fix: avoid empty tool provider tags

Yeuoly 8 months ago
parent
commit
947252609e
1 changed files with 8 additions and 0 deletions
  1. 8 0
      internal/types/entities/plugin_entities/tool_declaration.go

+ 8 - 0
internal/types/entities/plugin_entities/tool_declaration.go

@@ -217,6 +217,10 @@ func (t *ToolProviderDeclaration) UnmarshalYAML(value *yaml.Node) error {
 		t.Tools = []ToolDeclaration{}
 	}
 
+	if t.Identity.Tags == nil {
+		t.Identity.Tags = []manifest_entities.PluginTag{}
+	}
+
 	return nil
 }
 
@@ -279,6 +283,10 @@ func (t *ToolProviderDeclaration) UnmarshalJSON(data []byte) error {
 		t.Tools = []ToolDeclaration{}
 	}
 
+	if t.Identity.Tags == nil {
+		t.Identity.Tags = []manifest_entities.PluginTag{}
+	}
+
 	return nil
 }