Skip to content

[TS][Fetch] Handle query parameters containing colons#4287

Merged
wing328 merged 3 commits into
swagger-api:masterfrom
ChrisJamesC:cc-double-colon
Nov 30, 2016
Merged

[TS][Fetch] Handle query parameters containing colons#4287
wing328 merged 3 commits into
swagger-api:masterfrom
ChrisJamesC:cc-double-colon

Conversation

@ChrisJamesC

Copy link
Copy Markdown
Contributor

Put query parameters between quotes and access object keys using square
brackets to make sure special characters are handled in parameter
names.
Closes #4284

Put query parameters between quotes and access object keys using square
brackets to make sure special characters are handled in parameter
names.
Closes #4284
@wing328

wing328 commented Nov 29, 2016

Copy link
Copy Markdown
Contributor

@ChrisJamesC thanks for the PR. The change looks good to me. Please rebase on the latest master when you've time.

We might need to apply the same fix to other typescript generators (node, angular, angular2)

cc @Vrolijkx

@wing328 wing328 added this to the v2.2.2 milestone Nov 29, 2016
# Conflicts:
#
modules/swagger-codegen/src/main/resources/TypeScript-Fetch/api.mustache
#	samples/client/petstore/typescript-fetch/builds/default/api.ts
#	samples/client/petstore/typescript-fetch/builds/es6-target/api.ts
#
samples/client/petstore/typescript-fetch/builds/with-npm-version/api.ts
@ChrisJamesC

Copy link
Copy Markdown
Contributor Author

@wing328 I updated the branch from master.

Please let me know if there is anything I can do.

@Vrolijkx

Copy link
Copy Markdown
Contributor

@wing328 This fix is little bigger in the angular2 version
We pass our arguments as function parameters and not as parameter object. Changing this would be breaking and should be discussed a little bit more first.

@wing328 wing328 merged commit b733334 into swagger-api:master Nov 30, 2016
@wing328

wing328 commented Nov 30, 2016

Copy link
Copy Markdown
Contributor

@Vrolijkx sure, I've opened #4290 for tracking.

@wing328 wing328 changed the title [Typescript/fetch][Issue4284] Handle query parameters containing colons [TS][Fetch] Handle query parameters containing colons Feb 20, 2017
davidgri pushed a commit to davidgri/swagger-codegen that referenced this pull request May 11, 2017
…ns (swagger-api#4287)

Put query parameters between quotes and access object keys using square
brackets to make sure special characters are handled in parameter
names.
Closes swagger-api#4284
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants