acacode / acacode/swagger-typescript-api

Name flag is not respected when --modular is also provided

Aperta
#496 4 commenti 3 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
4.1k
Fork
436
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

When I run:
```
swagger-typescript-api --extract-enums --modular -p ./app/api/openapi.json -o ./app/api/sdk -n generated.server.ts
```

These files are generated
```
app/api/sdk/data-contracts.ts
app/api/sdk/http-client.ts
app/api/sdk/Api.ts
```

It looks like the `-n` flag is discarded when used with the `--modular` flag. I couldn't figure out any way to change the output file names when using the `--modular` flag from the readme.

I would expect `app/api/sdk/Api.ts` to be named `app/api/sdk/generated.server.ts` based on the `-n` flag.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.