Halil İbrahim Şener
f42a4a51dd
[javascript] Use babel-preset-env instead of es2015 and upgrade babel-cli and babel-core ( #6799 )
2017-10-25 11:12:41 +08:00
kinok
649811d542
[JavaScript] Handle custom request.agent ( #6737 )
...
* Handle custom request.agent
* better semantic
2017-10-20 15:00:27 +08:00
Halil İbrahim Şener
1f9f8c5a3e
[JavaScript] Fix licenseNames ( #6605 )
...
* [JavaScript] Fix licenseName in package.mustache
* Fix invalid SPDX license expression in resources/2_0
* Update JavaScript samples
2017-10-08 17:15:21 +08:00
Krzysztof Karol
4ee557aa24
Fix swagger-api/swagger-codegen#6345. Wrap optional JSDoc parameter (apiClient) in square brackets ( #6346 )
2017-08-24 10:39:34 +08:00
wing328
094dbd00ed
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-13 23:35:22 +08:00
boosh
d20537b263
Clarify the Javascript README for local use ( #6044 )
...
- Add instructions for installing the generated Javascript library locally without publishing to a remote npm registry.
- Clarify what `main.js` is.
2017-07-13 23:12:56 +08:00
wing328
b852e61ee9
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-09 00:59:41 +08:00
Jan
2774d47a2b
fix: es6 style of Array inheritance to fix transpiler error ( #5977 )
...
* fix: es6 style of Array inheritance to fix transpiler error
* fix: rebuild of promise-es6 petstore samples with fixed mustache
style: added space between classname and bracket
* style: rebuild javascript-all to reflect style changes in mustache
2017-07-05 01:04:07 +08:00
wing328
c4356dd9c3
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-20 22:18:28 +08:00
Vlad Frolov
c26b5a1e1b
[JavaScript] Fixed *WithHttpInfo methods in 'usePromises' mode to be ES5 compatible ( #3654 ) ( #4902 ) ( #5871 )
2017-06-20 16:27:07 +08:00
Vlad Frolov
3546361b33
[JavaScript] Added README section for Webpack configuration (howto disable AMD) ( #3466 ) ( #5872 )
2017-06-20 16:25:06 +08:00
wing328
c988afa766
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-19 11:23:58 +08:00
wing328
3808d67953
move javascript-es6 templates under subfolder in Javascript
2017-06-19 01:28:39 +08:00
wing328
022eb0d379
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-09 15:24:53 +08:00
Vlad Frolov
6a986975e4
[javascript] Fixed fs files support for Electron ( #5765 )
2017-06-07 17:01:47 +08:00
wing328
6183960d86
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-06 17:11:49 +08:00
Kevin Murphy
6239ec0807
[javascript] Mark "fs" package as absent in browser in package.mustache ( #5768 )
2017-06-06 17:09:50 +08:00
wing328
87bbbc1a1b
Merge remote-tracking branch 'origin/master' into 230_merge_master
2017-06-05 23:27:11 +08:00
Cliffano Subagio
9bc8f37aa6
[javascript] Fix empty response body when schema type is string ( #5759 )
...
* [javascript] Fix response body when return type is String.
* [javascript] Regenerate javascript petstores with fixed String return type.
2017-06-05 00:20:11 +08:00
wing328
879149bb69
Revert "[javascript] Added README section for Webpack configuration ( closes #3466 ) ( #5767 )" ( #5770 )
...
This reverts commit 54f5d73ee2 .
2017-06-04 16:52:50 +08:00
Vlad Frolov
54f5d73ee2
[javascript] Added README section for Webpack configuration ( closes #3466 ) ( #5767 )
2017-06-04 15:42:41 +08:00
wing328
7fc36f1e1e
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-14 22:32:12 +08:00
wing328
68864a2eea
[JavaScript] Minor fix to JS doc and add swagger-codegen version to the file header ( #5623 )
...
* fix JS doc using instance instead of default
* update JS header with codegen version
* roll back change in swagger codegen version in pom.xml
2017-05-12 16:49:20 +08:00
Michael Kourlas
0e65f649bc
[JavaScript] Fix for issue #5358 : Regression in 2.3 using multi parameters (Cannot read property 'buildCollectionParam' of undefined) ( #5362 )
...
* Fix for issue #5358
* Update tests for #5358
2017-04-11 17:52:32 +08:00
wing328
9acefcffdd
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-26 22:54:17 +08:00
Julien Dupouy
e50e653e3d
Binary support for javascript client ( #5194 )
2017-03-26 22:53:35 +08:00
wing328
bea9e265e9
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-22 20:52:26 +08:00
wing328
f064d29e82
Use unescaped path in API client templates ( #5154 )
...
* use unescaped path in api client templates
* use unescape basePath in API client templates
2017-03-22 20:49:06 +08:00
Paŭlo Ebermann
9be178b26a
Merge branch 'master' into new-sync-master-to-2.3.0
2017-03-13 21:42:41 +01:00
delenius
5935e2e6d9
Add support for saving/returning cookies ( #4192 )
...
This adds a `saveCookies` boolean flag to ApiClient. If set to true,
the client will save and return cookies to the server.
This is useful for supporting @SessionScoped beans in Java servers.
Works both in Node.js desktop apps, and in the browser.
2017-03-08 15:26:46 +08:00
Zhanwei Wang
10950db2dd
[JavaScript] Do not parse null and undefined as type. ( #4933 )
...
* [JavaScript] Do not parse null and undefined as type.
* update pet store example for #4932
2017-03-06 15:01:19 +08:00
Vlad Frolov
9516c81ebb
[JavaScript] Added *WithHttpInfo methods in 'usePromises' mode to provide a way to get access to HTTP response object (e.g. headers or status code) ( #3654 ) ( #4902 )
2017-03-03 18:20:52 +08:00
Hamed Ramezanian Nik
b894dc3827
Encode form paramerers properly\n ( #4836 )
...
Superagent doesn't encode form parameters properly. For example it doesn't encode objects which contain array. The following is a failed test case:
var my_opts = {
'storyId': 65441,
'id': [56, 352]
};
2017-03-03 16:48:11 +08:00
wing328
acd10318f7
Merge remote-tracking branch 'origin' into sync_master_230
2017-02-10 23:31:36 +08:00
Michael Kourlas
7aebcfa7c7
[JavaScript] Fix for issue #4654 : do not encode commas in CSV collection query parameters ( #4725 )
...
* Fix for issue #4654
* Update tests for fix for issue #4654
2017-02-06 23:53:13 +08:00
Vlad Frolov
6890ef9755
[JavaScript] Fixed handling of empty arrays/empty strings/booleans/single numbers as valid API responses ( #4653 ) ( #4666 )
2017-01-28 16:08:04 +08:00
David Teixeira
6d5da3f2ef
Added single quotes -- fixes bug where generated client throws an 'Uncaught Reference Error'.
2017-01-24 17:24:35 +00:00
David Teixeira
117e1ea53e
Removed pet variable from Javascript api_test Mustache file, which was undefined and is not necessary here. This should fix issue #4608 .
2017-01-23 11:29:49 +00:00
keysolutions
933cc1ce9a
Enum constructFromObject should return value ( #4613 )
...
When constructing an enum through constructFromObject the original value provided by the API response should be returned rather than extracting the value from the enum name. This resolves an issue where the constructed value is undefined when the name and value are not equivalent.
2017-01-23 16:45:38 +08:00
tharders
30315c8570
Fix Issue 4554 - handle 204 server response in javascript ( #4604 )
...
* issues 4554: Handle 204 response and handle deserialize exceptions
* issue-4554: generate javascript client updated template
Used petstore-with-fake-endpoints-models-for-testing.yaml
* use petstore-with-fake-endpoints-models-for-testing.yaml like sh script
2017-01-23 15:14:06 +08:00
Daniel
c15743bfe6
Issue4254 ( #4255 )
...
* Issue 4254 - Added mechanism for cache bursting
* Issue 4254 - Updated petstore samples
2016-11-25 00:14:59 +08:00
Jordan Yaker
5a2ec03549
fix(javascript): added check to see if the parsed response is really empty.
2016-11-19 15:06:36 -05:00
wing328
90512e6326
Remove Apache license from API client generators ( #4197 )
...
* remove php apache license
* remove apache license from C#
* remove apache license in objc code
* remove license from swift 3 code
* remove apache license from perl code
* remove license from scala code
* remove license from ts, go, android, cpp, scala
* remove license from java api client
* restore clojure petstore files
* remove license from travis file
* clean up apache-related terms in php, ruby, python mustache tempaltes
* remove license from JS API cilent
2016-11-16 21:44:49 +08:00
keysolutions
ab9ea5b2c3
Add constructFromObject to Javascript enum generation. ( #4120 )
...
* Add constructFromObject to Javascript enum generation.
Generated code calls constructFromObject on enum types, but enum did not define the necessary function. Returns the value of the enum.
* Update Petstore JS API client
2016-11-05 23:14:48 +08:00
Maurice de Beijer
75d04d8be7
Throw an Error object instead of a string
2016-10-23 17:15:15 +02:00
Andreas Franzén
d21613c6ab
Bugfix/3929 do not set multipart ( #3932 )
...
* Do not set Content-Type to multipart/form-data
It causes superagent to not add the boundary in the Content-Type
* Run shell-scripts
2016-10-08 12:36:56 +08:00
wing328
d464bfbd59
fix JS auth issue due to missig comma
2016-08-31 17:50:56 +08:00
wing328
5804fbc1dd
remove unnecesary change in JS codegen
2016-08-31 16:52:46 +08:00
delenius
c888434580
Improve jsdoc for API return values ( #3327 )
...
* Add jsdoc for usePromises, add @link for callbacks
* Update petstore samples
* Improve jsdoc for void return type + usePromises
* Add back curly brackets correctly in model template
* Add link to Promise doc in jsdoc comment
* Fix jsdoc annotation for callApi method
The return type annotation was also broken here.
2016-07-20 20:14:51 +08:00
Michael Kourlas
a4c589c346
Correct reference to ApiClient default instance
2016-07-13 13:56:43 -04:00