acacode / acacode/swagger-typescript-api

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

Open
#496 4 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.1k
Forks
436
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.