acacode / acacode/swagger-typescript-api

13.0.0: --route-types option is ignored

未关闭
#585 1 条评论 5 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
4.1k
派生
436
PR 合并指标
30 天内没有已合并 PR

描述

# Summary

It appears that swagger-typescript-api started ignoring the "--route-types" option from version 13.0.0.

# Version

- swagger-typescript-api: 13.0.0
- Node.js: 18.16.0

# Reproduce

I created a sample project to reproduce this behavior.

https://codesandbox.io/p/sandbox/sleepy-golick-5zt4wz?file=%2Fpackage.json%3A25%2C32

1. Run `npx sta -p oas.yaml --no-client --route-types` in terminal.
2. The generated ts file `Api.ts` has no routes typings.

It seems internal variable `config.generateRouteTypes` cannot be set to true.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。