We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d62b246 commit b4666fdCopy full SHA for b4666fd
internal/apijson/enum.go
@@ -29,7 +29,7 @@ type validatorFunc func(reflect.Value) exactness
29
var validators sync.Map
30
var validationRegistry = map[reflect.Type][]validationEntry{}
31
32
-func RegisterFieldValidator[T any, V string | bool | int](fieldName string, values ...V) {
+func RegisterFieldValidator[T any, V string | bool | int | float64](fieldName string, values ...V) {
33
var t T
34
parentType := reflect.TypeOf(t)
35
0 commit comments