diff --git a/shared/plugin/implementations/validator/cmd/plugin.go b/shared/plugin/implementations/validator/cmd/plugin.go index b02f214..13dab92 100644 --- a/shared/plugin/implementations/validator/cmd/plugin.go +++ b/shared/plugin/implementations/validator/cmd/plugin.go @@ -18,13 +18,7 @@ func (vp ValidatorProvider) New(ctx context.Context, config map[string]string) ( return nil, definition.Error{Path: "", Message: err.Message} } - // Convert the map to the expected type - result := make(map[string]definition.Validator) - for key, val := range validators { - result[key] = val - } - - return result, definition.Error{} + return validators, definition.Error{} } // Provider is the exported symbol that the plugin manager will look for.