openapi2typescript icon indicating copy to clipboard operation
openapi2typescript copied to clipboard

apiPrefix的使用问题

Open wwwxy80s opened this issue 2 years ago • 2 comments

  1. apiPrefix的类型为字符串,但是需要是嵌套的字符串('"api"')才能生效,如果只是单纯的字符串('api'),则会变成${api}的形式,这个是故意设计成这样的吗?感觉很怪 代码行
  2. README文件中apiPrefix的支持类型只写了string,但是实际还支持方法,是为了引导用户更多使用string故意不暴露还是遗漏了代码行

wwwxy80s avatar May 26 '22 11:05 wwwxy80s

遇到了同样的问题,如果是传递变量名的话,怎么在生成的ts文件中引用这个变量呢

PaleNeutron avatar Jan 26 '24 00:01 PaleNeutron

这样很灵活啦

lzm0x219 avatar Apr 15 '24 03:04 lzm0x219