|
@@ -457,7 +457,7 @@ var (
|
|
|
var (
|
|
|
acceptValues = accept.([]interface{})
|
|
|
acceptValuesString = []string{}
|
|
|
- value = input.(string)
|
|
|
+ value = fmt.Sprintf("%v", input)
|
|
|
)
|
|
|
|
|
|
for _, acceptValue := range acceptValues {
|
|
@@ -478,7 +478,7 @@ var (
|
|
|
"reject": func(input interface{}, reject interface{}) *errs.Error {
|
|
|
var (
|
|
|
rejectValues = reject.([]interface{})
|
|
|
- value = input.(string)
|
|
|
+ value = fmt.Sprintf("%v", input)
|
|
|
)
|
|
|
|
|
|
for _, rejectValue := range rejectValues {
|