diff --git a/types/reflection.go b/types/reflection.go index 0db14725..a64d14a4 100644 --- a/types/reflection.go +++ b/types/reflection.go @@ -286,7 +286,9 @@ func (s *Schemas) readFields(schema *Schema, t reflect.Type) error { schemaField.Nullable = false schemaField.Default = false } else if fieldType.Kind() == reflect.Int || + fieldType.Kind() == reflect.Uint32 || fieldType.Kind() == reflect.Int32 || + fieldType.Kind() == reflect.Uint64 || fieldType.Kind() == reflect.Int64 { schemaField.Nullable = false schemaField.Default = 0 @@ -440,6 +442,8 @@ func (s *Schemas) determineSchemaType(version *APIVersion, t reflect.Type) (stri fallthrough case reflect.Uint32: fallthrough + case reflect.Uint64: + fallthrough case reflect.Int64: return "int", nil case reflect.Interface: