Browse Source

refactor: allow empty author

Yeuoly 10 months ago
parent
commit
9e7898d721
1 changed files with 1 additions and 1 deletions
  1. 1 1
      internal/types/entities/plugin_entities/plugin_declaration.go

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

@@ -135,7 +135,7 @@ type PluginExtensions struct {
 type PluginDeclarationWithoutAdvancedFields struct {
 	Version   string                    `json:"version" yaml:"version,omitempty" validate:"required,version"`
 	Type      DifyManifestType          `json:"type" yaml:"type,omitempty" validate:"required,eq=plugin"`
-	Author    string                    `json:"author" yaml:"author,omitempty" validate:"required,max=128"`
+	Author    string                    `json:"author" yaml:"author,omitempty" validate:"omitempty,max=64"`
 	Name      string                    `json:"name" yaml:"name,omitempty" validate:"required,max=128"`
 	Icon      string                    `json:"icon" yaml:"icon,omitempty" validate:"required,max=128"`
 	Label     I18nObject                `json:"label" yaml:"label" validate:"required"`