openapi2typescript icon indicating copy to clipboard operation
openapi2typescript copied to clipboard

一个被大范围使用的小工具

Results 72 openapi2typescript issues
Sort by recently updated
recently updated
newest added

![image](https://github.com/chenshuai2144/openapi2typescript/assets/64891869/b9cbcb95-8450-45e0-9358-2995fc7004b4) 如上图,每个response返回的结构都是一样的,这里怎么生成统一的泛型

后端多个swagger 地址 eg1: http:123.com/user.swagger.json eg2: http:123.com/product.swagger.json 项目内schemaPath 为string,想问一下作者我该如何通过多个地址拉取到项目内?

https://github.com/chenshuai2144/openapi2typescript/blob/c8ac5154c0a16fb2d28cf0f2263868d6ef2cb012/templates/serviceController.njk#L131-L133

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