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 a338742 commit 4658d5cCopy full SHA for 4658d5c
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