acacode / acacode/swagger-typescript-api

Remove options method

オープン
#472 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
4.1k
フォーク
436
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi, im trying to clean the generated client, for example, i want to remove the options method
```
Module "api" already has method "optionsApi()"
⚠️ This method has been renamed to "optionsApi105()" to solve conflict names.
⚠️ Module "api" already has method "optionsApi()"
⚠️ This method has been renamed to "optionsApi106()" to solve conflict names.
⚠️ Module "api" already has method "optionsApi()"
⚠️ This method has been renamed to "optionsApi107()" to solve conflict names.
⚠️ Module "api" already has method "optionsApi()"
⚠️ This method has been renamed to "optionsApi108()" to solve conflict names.
⚠️ Module "api" already has method "optionsApi()"
⚠️ This method has been renamed to "optionsApi109()" to solve conflict names.
⚠️ Module "api" already has method "optionsApi()"
⚠️ This method has been renamed to "optionsApi110()" to solve conflict names.
⚠️ Module "api" already has method "optionsApi()"
⚠️ This method has been renamed to "optionsApi111()" to solve conflict names.
```
i tried using the hooks but still didnt find a way to do that
```
onInit: (configuration) => {
const { paths } = configuration.swaggerSchema;
for (const path in paths) {
if (Object.hasOwnProperty.call(paths, path)) {
const { options, ...rest } = paths[path];
if (options) { configuration.swaggerSchema.paths[path] = rest; }
}
}

return configuration;
}
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。