Skip to content

--api-class-name option has no default value #433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sawadyecma opened this issue Oct 28, 2022 · 2 comments
Closed

--api-class-name option has no default value #433

sawadyecma opened this issue Oct 28, 2022 · 2 comments
Labels
bug Something isn't working next release

Comments

@sawadyecma
Copy link

sawadyecma commented Oct 28, 2022

Hi. I would like to report the problem happened in our team.

The --api-class-name option has no default value.

When our team runs:

swagger-typescript-api -p ./swagger.yaml

expected output file is:

...
export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
...

but actual output file is :

...
export class undefined<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
...

It seems to me that the --api-class-name should have a default value, for example Api.

Environment

  • version: 11.1.0
@js2me js2me added bug Something isn't working next release labels Oct 28, 2022
@js2me
Copy link
Member

js2me commented Oct 28, 2022

Hi @sawadyecma thanks for this issue! Fixed in 11.1.1

@sawadyecma
Copy link
Author

@js2me
Tnank you for your fixing !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working next release
Projects
None yet
Development

No branches or pull requests

2 participants