Skip to content

Commit 299c1d3

Browse files
authored
fix: Only warn on validation err (#1280)
1 parent d49f8dc commit 299c1d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func (p *Plugin) Init(ctx context.Context, spec []byte, options NewClientOptions
141141
return fmt.Errorf("failed to unmarshal plugin spec: %w", err)
142142
}
143143
if err := p.schemaValidator.Validate(v); err != nil {
144-
return fmt.Errorf("plugin spec is invalid: %w", err)
144+
p.logger.Err(err).Msg("failed JSON schema validation for spec")
145145
}
146146
}
147147

0 commit comments

Comments
 (0)