acacode / acacode/swagger-typescript-api
Remove options method
- Ngôn ngữ chính
- TypeScript
- Star
- 4.1k
- Fork
- 436
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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;
}
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.