acacode / acacode/swagger-typescript-api

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

Offen
#496 4 Kommentare 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
4.1k
Forks
436
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.