acacode / acacode/swagger-typescript-api

13.0.0: --route-types option is ignored

オープン
#585 コメント 1 件 リアクション 5 件 担当者 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 を短くまとめたダイジェスト。