EUGENIO SOUZA CARVALHO 4 years ago
parent
commit
6234cab41c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      common/models.go

+ 2 - 2
common/models.go

@@ -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 {