Skip to content

[Scalatra] Fix CSV collection parameter issues for scalatra server#4426

Merged
wing328 merged 2 commits intoswagger-api:masterfrom
jtnystrom:issue-3806
Dec 20, 2016
Merged

[Scalatra] Fix CSV collection parameter issues for scalatra server#4426
wing328 merged 2 commits intoswagger-api:masterfrom
jtnystrom:issue-3806

Conversation

@jtnystrom
Copy link
Copy Markdown
Contributor

PR checklist

  • Read the contribution guildelines.
  • Ran the shell/batch script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates)
  • Filed the PR against the correct branch: master for non-breaking changes and 2.3.0 branch for breaking (non-backward compatible) changes.

Description of the PR

Scalatra server generated code had two issues that broke CSV format collection parameters (see issue 3806). The comparison "default".equals("csv") prevented the parameters from ever being parsed, and if they had been parsed, the type of the parsed data would have been just Serializable (impossible to use). This fixes both issues.

@jtnystrom jtnystrom changed the title Issue 3806 Fix CSV collection parameter issues for scalatra server Dec 19, 2016
@wing328 wing328 added this to the v2.2.2 milestone Dec 20, 2016
@wing328
Copy link
Copy Markdown
Contributor

wing328 commented Dec 20, 2016

@jtnystrom thank you for the PR, which has been merged into master.

(If your company is using Swagger Codegen, please consider adding your company name to this list)

@wing328 wing328 merged commit ff70105 into swagger-api:master Dec 20, 2016
@jtnystrom jtnystrom deleted the issue-3806 branch December 21, 2016 05:48
@wing328
Copy link
Copy Markdown
Contributor

wing328 commented Jan 3, 2017

Linked to #3806

@wing328 wing328 changed the title Fix CSV collection parameter issues for scalatra server [Scalatra] Fix CSV collection parameter issues for scalatra server Feb 21, 2017
davidgri pushed a commit to davidgri/swagger-codegen that referenced this pull request May 11, 2017
…4426)

* Fix scalatra handling of CSV query parameters

* Ran petstore for scalatra server
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.

2 participants