add all types of integer

Signed-off-by: soasurs <soasurs@gmail.com>
This commit is contained in:
soasurs
2022-05-17 14:36:05 +08:00
parent b48cd9e791
commit cdb607f6c3
2 changed files with 22 additions and 0 deletions

View File

@ -13,6 +13,16 @@ var swaggerMapTypes = map[string]reflect.Kind{
"*string": reflect.String,
"int": reflect.Int,
"*int": reflect.Int,
"uint": reflect.Uint,
"*uint": reflect.Uint,
"int8": reflect.Int8,
"*int8": reflect.Int8,
"uint8": reflect.Uint8,
"*uint8": reflect.Uint8,
"int16": reflect.Int16,
"*int16": reflect.Int16,
"uint16": reflect.Uint16,
"*uint16": reflect.Uint16,
"int32": reflect.Int,
"*int32": reflect.Int,
"uint32": reflect.Int,