openapi2typescript icon indicating copy to clipboard operation
openapi2typescript copied to clipboard

无法正常生成List<xxx>类型的type

Open ziqiya opened this issue 11 months ago • 0 comments

"@umijs/openapi": "^1.12.1"

当生成例如:

Image

Image

的List<Integer>/List<Long>类型的定义时,都会被转为number/string类型没有数组[],甚至List<Integer>被转为了String:

Image

Image

必须直接用String[]定义吗,只有这样转化正常:

Image

ziqiya avatar Jan 20 '25 07:01 ziqiya