update test cases for plugin file

This commit is contained in:
AshwiniK-protean
2025-03-13 18:37:58 +05:30
parent e9cc670e3d
commit 4b9813c11c

View File

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