acacode / acacode/swagger-typescript-api

Remove options method

Aberta
#472 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
TypeScript
Estrelas
4.1k
Forks
436
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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;
}
```

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.