Skip to content

Commit 4f48fdb

Browse files
authored
Align plugin manifest validation error messages with regex length limits (#547)
1 parent 38ec23d commit 4f48fdb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/entities/plugin_entities/plugin_declaration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ func (p *PluginDeclaration) ManifestValidate() error {
271271
}
272272

273273
if !PluginNameRegex.MatchString(p.Name) {
274-
return fmt.Errorf("plugin name must be alphanumeric and less than 64 characters: ^[a-z0-9_-]{1,64}$")
274+
return fmt.Errorf("plugin name must be alphanumeric and less than 128 characters: ^[a-z0-9_-]{1,128}$")
275275
}
276276

277277
if p.Endpoint == nil && p.Model == nil && p.Tool == nil && p.AgentStrategy == nil && p.Datasource == nil && p.Trigger == nil {

0 commit comments

Comments
 (0)