Skip to content

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

Closed
@sawadyecma

Description

@sawadyecma

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions