75 Commits

Author SHA1 Message Date
Jason Gavris
9e54dce92f [Swift] Use thread safe manager dictionary 2016-09-26 11:27:07 -04:00
wing328
70ed52cee0 add default value to swift podspec 2016-09-22 18:41:53 +08:00
wing328
322862c4b6 add hided timestamp option to swfit codegen 2016-08-31 16:45:12 +08:00
Ville Skyttä
b4c139f19b Spelling fixes 2016-08-27 02:34:33 +03:00
Tony Wang
beaf1fc7aa fix #3477, add RxSwift support for Swift (#3490)
* fix #3477, add RxSwift support for Swift

* make the SwaggerClient scheme shared
2016-08-25 19:34:12 +08:00
Jason Gavris
e89f914e8b [Swift] Handle String responses 2016-08-23 10:18:01 -04:00
Jason Gavris
3a457c6a7e [Swift] Handle Void responses 2016-08-23 10:03:51 -04:00
Ryan Martin
c1f3c51427 [Swift] Include HTTP status code and body data in response errors
This is useful when differentiating different error responses. Example:

if let e = error {
  switch e {
    case ErrorResponse.Error(400, _, _): responseLabel.text = "Unknown error"
    case ErrorResponse.Error(403, _, _): responseLabel.text = "Not logged in"
    default: responseLabel.text = "\(e)"
  }
}

The existing error is straight from Alamofire and only includes the HTTP
status code in the body of the message (not broken out as a separate value).
It also does not include the response body, which may be useful.
2016-08-22 12:30:03 -04:00
wing328
3c1e47c31d Merge branch 'feature/jack/update-swift-alamofire' of https://github.com/JackWink/swagger-codegen into JackWink-feature/jack/update-swift-alamofire 2016-08-12 08:59:12 +08:00
wing328
148a842f3b fix #2538 (#3535) 2016-08-05 18:09:00 +08:00
Jack Wink
be6c661fa0 [Swift] Update samples to use latest Alamofire
In order to run the integration tests, we needed to generate updated
clients.
2016-07-30 12:19:06 -07:00
Jason Gavris
4f0b7dfaed [Swift] Handle binary data types 2016-07-19 11:05:40 -04:00
Jason Gavris
9e6896c8f0 [Swift] Fix pod authors in podspec 2016-07-19 10:37:20 -04:00
wing328
b9479ae8b7 Merge pull request #3271 from ButterflyNetwork/swift-uuid
[Swift] Add support for NSUUID
2016-07-19 14:16:45 +08:00
Jason Gavris
cd79ae1ab4 [Swift] Add support for NSUUID 2016-07-18 23:30:01 -04:00
Jason Gavris
87b79e5946 [Swift] Expose NSProgress to RequestBuilder 2016-07-18 23:29:29 -04:00
Jason Gavris
693c73171e [Swift] Use ISO-8601 date format
- Also fix up Enum parameter generation for formParams by extracting _param partial
2016-07-01 09:55:32 -04:00
wing328
8c754d234d fix npe for swift due to array of enum 2016-07-01 16:58:18 +08:00
wing328
2107758100 add swift-petstore-all.sh and partial_license for perl 2016-06-16 16:42:17 +08:00
wing328
f2f6940006 Merge pull request #2987 from mbarclay/master
Added date format string #2935
2016-06-05 21:42:56 +08:00
wing328
7719cafb94 fix CI issue 2016-05-30 22:02:17 +08:00
Malcolm Barclay
5777d21579 Merge remote-tracking branch 'upstream/master'
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2016-05-28 18:47:41 +01:00
Malcolm Barclay
f2bd3d981e Updated petstore swift swagger client.
Enabled execute (755) permissions on swift-petstore.sh Ran integration test (passed).
2016-05-28 15:11:25 +01:00
Joseph Zuromski
673784491e couple new files 2016-05-23 20:09:06 -07:00
Joseph Zuromski
00c4877baf move swift samples into swift/default and swift/promisekit directories 2016-05-23 20:08:00 -07:00
Robin Eggenkamp
1a1bf74d01 [Swift] Add sample/tests for Swift client without PromiseKit 2016-05-21 15:57:52 +02:00
Joseph Zuromski
4e0e91e58b move up to ios 9.3 2016-05-19 12:35:17 -07:00
Joseph Zuromski
9bdf7c4bbb move back to alamofire 3.1.5 because alamofire 3.2.x and up cause issues speaking to the petstore service - has to do w/ Accept/content type changes 2016-05-18 09:48:12 -07:00
Joseph Zuromski
98385aa746 checkpoint updating pod dependencies/moving to cocoapods1.0 2016-05-18 08:51:29 -07:00
wing328
1d6eef715c update swift petstore sample 2016-05-15 01:35:01 +08:00
wing328
610af20712 update swift sample 2016-05-13 16:40:01 +08:00
Christophe Jolif
524ced1d9b Fix regression on swift enum name as well as make sure enum var name with colons ouput compiable swift. Add a test. fixes #2824, fixes #2835 2016-05-12 11:57:43 +02:00
wing328
982a035cc1 add better enum support to swift 2016-05-03 18:12:35 +08:00
wing328
1178d31d1f update petstore sample 2016-04-20 15:57:18 +08:00
wing328
4f84c7d3bc Merge pull request #2583 from cjolif/nilasdefault
make sure user is not forced to pass nil for optional parameters
2016-04-14 19:23:24 +08:00
Joseph Zuromski
86a7637010 [Swift] minor spacing cleanup in Models.mustache 2016-04-13 23:36:16 -07:00
Christophe Jolif
fca0d0f0f7 make sure user is not forced to pass nil for optional parameters 2016-04-13 11:14:48 +02:00
wing328
68cb030609 add new files for format test model 2016-04-11 22:11:53 +08:00
wing328
44a4219e3e fix swift mapping with int and number 2016-04-11 19:37:56 +08:00
Christophe Jolif
fb56e11470 Make sure body params of type Int32/Int64 are correctly encoded for that create JSONEncodable extensions for Int32/Int64. Re-use extensions in Model.encodeToJSON to simplify code. 2016-03-22 22:23:47 +01:00
Christophe Jolif
677890fc08 Generates Int32/Int64 for Swift when those are the required formats. Fixes #2133. 2016-03-19 13:03:33 +01:00
wing328
9525d67cd8 use basename for swift model property 2016-03-18 12:02:26 +08:00
wing328
05a8c47a36 update docstring to include default value 2016-03-17 17:43:21 +08:00
wing328
47bb5689d9 better hanlding of model name starting with number 2016-03-17 11:49:06 +08:00
wing328
a529d9dfe0 push new git_push and .gitinore file 2016-03-12 18:01:53 +08:00
wing328
637bdd2f50 add git_push and gitignore to most client generators 2016-03-12 17:35:25 +08:00
wing328
8cf0fcf7c4 update objc and swift petstore sample 2016-03-04 15:59:13 +08:00
wing328
057e1d4c4b proper indention for swift generator 2016-03-02 15:46:24 +08:00
Thomas Gilbert
dea699f1ef Update petstore swift client 2016-03-02 08:14:37 +01:00
hideya kawahara
9ee154c13a Make {{projectName}}API namespace for API classes optional 2016-02-27 19:38:12 +09:00