update test cases for plugin file
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user