259 Commits

Author SHA1 Message Date
Sunny Gupta
80259fbcc4 Fixed the compile time error in the generated code caused due to unescaped new line characters.
Since the description text is not being escaped, if there is a new line character, it will cause a new line to be added to the source code. This can cause compile time error if the new line character is part of a string (e.g. java string) and there is no '+' sign explicitly added to the code. Note: The code was doing escapeText for properties but not for models. This patch fixes that.
2015-04-01 12:33:44 -07:00
Tony Tam
64292cdc9b Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-04-01 07:41:54 -07:00
Tony Tam
df771b5a4d updated springfox templates 2015-04-01 07:41:45 -07:00
Tony Tam
8b8e8d70f9 Merge pull request #580 from wing328/php_content_type
Fix content-type and accept in PHP API
2015-04-01 07:29:57 -07:00
Tony Tam
f142474a54 updated templates 2015-03-31 21:47:30 -07:00
Tony Tam
084d448fd4 Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-03-31 21:00:34 -07:00
Tony Tam
1385a157e9 moved count 2015-03-31 21:00:15 -07:00
Tony Tam
fe3c3cc8bc fix for #578 2015-03-31 20:59:57 -07:00
xhh
d5ad4c4ae7 Fix date time format for Android client
According to Android's docs (https://developer.android.com/reference/java/text/SimpleDateFormat.html)
the `SimpleDateFormat` class in Android does not accept `XXX` as the timezone, it uses `Z` instead.

Also updated the date time format of Android and Java clients to include milliseconds.
2015-04-01 10:22:04 +08:00
Tony Tam
cd2c8f6527 Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-03-31 16:08:53 -07:00
Tony Tam
93fef67c7e added required check 2015-03-31 16:08:37 -07:00
Tony Tam
5f07fb0b03 sorted 2015-03-31 16:07:37 -07:00
Tony Tam
f17968d5b3 fixed required flag 2015-03-31 16:07:24 -07:00
Tony Tam
055c4397e9 renamed 2015-03-31 16:07:07 -07:00
Tony Tam
62a99115fc renamed 2015-03-31 16:06:52 -07:00
Tony Tam
7483a06226 renamed 2015-03-31 16:06:46 -07:00
Tony Tam
f265ce361a Merge pull request #556 from FindTheBest/develop_2.0
Python Binding Request Headers
2015-03-31 15:58:34 -07:00
William Cheng
03c48af9e6 Fix content-type and accept in PHP API 2015-04-01 04:26:32 +08:00
James Ebentier
ce700b9421 Fixing one more issue with the defaultHeaders merging and removing unnecessary code 2015-03-30 12:47:56 -07:00
James Ebentier
761ab22f08 Adding Self to setDefaultHeader method signature 2015-03-30 12:28:17 -07:00
William Cheng
0ee39c67fe fix rspec, update ruby client default configuration 2015-03-31 01:28:33 +08:00
James Ebentier
148b2daaa3 Python Formatting: removing semicolons from the python code 2015-03-30 08:42:12 -07:00
Tony Tam
5e83b6602e updated templates for baseName 2015-03-29 20:49:51 -07:00
Tony Tam
367f81d52d Merge branch 'add_csharp_codegen' of https://github.com/wing328/swagger-codegen into wing328-add_csharp_codegen 2015-03-29 20:03:16 -07:00
Tony Tam
b10445f3f6 Merge pull request #561 from wing328/ruby_doc
Update ruby api files with better documentation
2015-03-29 19:58:21 -07:00
Tony Tam
1e7862a466 Merge pull request #574 from geekerzp/develop_2.0_python_urlencode
Fixed issue that query parameters double url encoded in python client
2015-03-29 19:56:02 -07:00
Tony Tam
63efc4f442 removed println 2015-03-29 19:41:58 -07:00
Tony Tam
8de8f48679 fix for Optional 2015-03-29 19:41:24 -07:00
geekerzp
8f6afda99a fixed issue that query parameters double url encoded 2015-03-30 10:34:01 +08:00
Tony Tam
510254e5a3 fixed required flag 2015-03-29 19:17:54 -07:00
wing328
c1824b5387 fix parameter name in API, update petstore sample 2015-03-30 09:31:49 +08:00
Tony Tam
517c0a4f52 Merge pull request #558 from geekerzp/develop_2.0_objc_jsonmodel
Add JSONModel to objective-c client
2015-03-29 08:53:14 -07:00
Tony Tam
cab50ccb59 Merge pull request #548 from xhh/java-android-user-agent
Set default User-Agent for Java and Android clients
2015-03-29 08:52:56 -07:00
Tony Tam
e51f548807 Merge pull request #559 from wing328/java_doc
Update Java documentation for methods (endpoints)
2015-03-29 08:52:32 -07:00
Tony Tam
8a214838e5 Merge pull request #565 from wing328/php_doc
Update PHP documentation for method
2015-03-29 08:52:01 -07:00
geekerzp
37118cab47 Merge branch 'develop_2.0' into develop_2.0_objc_jsonmodel
Conflicts:
	samples/client/petstore/objc/PetstoreClient/PetstoreClientTests/PetApiTest.m
2015-03-29 18:15:02 +08:00
geekerzp
e6d7517e63 Update api-body.mustache, api-header.mustache,
apiBodyResponseWithContainer.mustache and apiNonPrimitiveResponse.mustache
templates in objective-c client.

* Update `asDictionary` method to `toDictionary` method which provided by
  JSONModel.
* Update `initWithValues` method to `initWithDictionary` method which
  provided by JSONModel.
2015-03-29 18:06:52 +08:00
xhh
90db8e2147 Add setUserAgent method to Java and Android clients 2015-03-29 09:55:20 +08:00
xhh
65883a5d85 Set default User-Agent for Java and Android clients 2015-03-29 09:55:19 +08:00
Tony Tam
49e9c74324 Merge pull request #572 from swagger-api/issue-567
Issue 570
2015-03-28 10:46:17 -07:00
Tony Tam
92621f2f2d fix for issue 567, added reserved words, rebuilt client 2015-03-28 10:41:51 -07:00
William Cheng
836f7ecb95 rebase with develop_2.0 2015-03-28 22:55:15 +08:00
MerkushevKirill
0dcd307333 update docs and bash about CLI usage, deprecate old cli classes
(after #547)
2015-03-28 12:34:44 +03:00
William Cheng
a12cc1c544 remove {{newline}} as it has no impact at all 2015-03-28 16:43:16 +08:00
William Cheng
27e1b1c4b2 update java doc 2015-03-28 16:43:15 +08:00
Tony Tam
0686a91690 updated camelize function for #567 2015-03-27 23:18:54 -07:00
Tony Tam
99271e77ab added multi-param args 2015-03-27 22:55:06 -07:00
Tony Tam
c9a2a14da5 added queryParamCollection 2015-03-27 22:17:50 -07:00
William Cheng
bdd1d1621f remove {{newLine}} and replace tab wtih 2 spaces 2015-03-27 23:55:26 +08:00
William Cheng
6ab51bcb4e remove tab with 2 spaces in php api template 2015-03-27 23:11:13 +08:00