Skip to content

[Swift] Fix issue #4764#5065

Merged
wing328 merged 1 commit intoswagger-api:masterfrom
ibm-bluemix-mobile-services:issue-4764
Mar 17, 2017
Merged

[Swift] Fix issue #4764#5065
wing328 merged 1 commit intoswagger-api:masterfrom
ibm-bluemix-mobile-services:issue-4764

Conversation

@AnthonyOliveri
Copy link
Copy Markdown
Contributor

@AnthonyOliveri AnthonyOliveri commented Mar 14, 2017

PR checklist

  • Read the contribution guidelines.
  • 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) - This does not affect the Petstore sample
  • 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

Adds file type detection to Swift codegen, which was previously missing. This was causing Swift codegen to never know when a parameter or response type was defined with type file.

This fixes issue #4764.

@AnthonyOliveri AnthonyOliveri mentioned this pull request Mar 14, 2017
3 tasks
@AnthonyOliveri AnthonyOliveri changed the title [Swift] Detect file type in Swift codegen [Swift] Fix issue #4764 Mar 14, 2017
@jaz-ah
Copy link
Copy Markdown
Contributor

jaz-ah commented Mar 15, 2017

+1 looks good thanks

@wing328 wing328 added this to the v2.2.3 milestone Mar 17, 2017
@wing328
Copy link
Copy Markdown
Contributor

wing328 commented Mar 17, 2017

@jaz-ah thanks for reviewing the change.

@AnthonyOliveri thanks for the PR, which has been merged into master.

I'll create a task to review other generators to make sure isDataTypeFile and isDataTypeBinary are properly overridden.

@wing328 wing328 merged commit 98e8e55 into swagger-api:master Mar 17, 2017
spr3nk3ls pushed a commit to spr3nk3ls/swagger-codegen that referenced this pull request Mar 28, 2017
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