Skip to content

Fix typescript axios options - #1429

Open
flashnoob wants to merge 4 commits into
swagger-api:masterfrom
flashnoob:fix-typescript-axios-options
Open

Fix typescript axios options#1429
flashnoob wants to merge 4 commits into
swagger-api:masterfrom
flashnoob:fix-typescript-axios-options

Conversation

@flashnoob

Copy link
Copy Markdown

Pull Request

Thank you for contributing to swagger-codegen-generators!

Description

Fix a parameter name collision in the typescript-axios generator when an OpenAPI operation defines a parameter named options.

The generator currently uses options for the Axios request configuration parameter. If an API operation also has a parameter named options, the generated TypeScript method contains duplicate parameter names.

For example, the generated method can contain:

options: Array<CoverageOptionPutRequest>,
authorization?: string,
options?: AxiosRequestConfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants