William Cheng
587dc20e06
[Javascript] Set ES5 as default ( #7239 )
...
* default js client to es5
* update js option wording
2017-12-22 00:08:30 +08:00
wing328
36f14ab757
update JS petstore samples
2017-10-20 22:16:41 +08:00
wing328
1dc3fb4f37
remove unused JS files
2017-10-08 17:16:48 +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
fca8d81b2b
[JS] fix template directory for ES5 ( #6253 )
...
* fix #5845 (template dir)
* fix js petstore test case
2017-08-07 22:10:56 +08:00
wing328
094dbd00ed
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-13 23:35:22 +08:00
wing328
d8bae71b8e
update JS petstore samples
2017-07-13 23:26:49 +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
49dbb51957
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-26 23:39:04 +08:00
wing328
6eb987919f
minor fix to js promise test cases
2017-06-26 21:48:44 +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
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
41527ead54
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-24 20:13:31 +08:00
wing328
b024288df2
JS ES6 enhancements
2017-05-24 16:50:32 +08:00
wing328
e1e5ac4d37
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-17 22:00:06 +08:00
wing328
0a67696de8
Merge branch 'empty_classes' of https://github.com/bbdouglas/swagger-codegen into bbdouglas-empty_classes
2017-05-16 17:51:42 +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
Benjamin Douglas
07ba1eb6f8
Fixup generation of Javascript samples
...
The generation code was ignoring top-level aliases for any language config that
contained "java", which included "javascript", a completely different language.
Changed this to be those configs based on the JavaAbstractGenerator class.
2017-04-17 17:50:01 -07:00
Benjamin Douglas
9058099e5b
Add alias type definitions for Java
...
When a spec defines a Model at the top level that is a non-aggretate type (such
as string, number or boolean), it essentially represents an alias for the simple
type. For example, the following spec snippet creates an alias of the boolean
type that for all intents and purposes acts just like a regular boolean.
definitions:
JustABoolean:
type: boolean
This can be modeled in some languages through built-in mechanisms, such as
typedefs in C++. Java, however, just not have a clean way of representing this.
This change introduces an internal mechanism for representing aliases. It
maintains a map in DefaultCodegen that tracks these types of definitions, and
wherever it sees the "JustABoolean" type in the spec, it generates code that
uses the built-in "Boolean" instead.
This functionality currenlty only applies to Java, but could be extended to
other languages later.
The change adds a few examples of this to the fake endpoint spec for testing,
which means all of the samples change as well.
2017-04-17 12:58:31 -07: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
cf8a9a0de0
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-03 14:54:50 +08:00
Paŭlo Ebermann
ce41a343d8
Updating all samples (except feign) ( #5281 )
2017-04-02 17:01:15 +08:00
wing328
9c18c32b93
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-31 01:21:03 +08:00
Paŭlo Ebermann
36d1406493
Update samples for javascript + javascript-promise. ( #5241 )
2017-03-30 23:04:49 +08:00
wing328
ad4de91d92
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-30 09:57:07 +08:00
Paŭlo Ebermann
db71d97370
Updating samples after #5232 . ( #5243 )
...
* Updating samples after #5232 .
* Fix tests after #5232 .
* Fix Javascript client tests.
* JaxRS server: set serverPort only when not given from outside.
* Update JaxRS sample creator scripts to fix serverPort.
* Preliminary test fix for JaxRS server generators.
* Updating samples for JaxRS with Jersey1/2.
* Updating JaxRS samples again.
2017-03-30 01:28:53 +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
Paŭlo Ebermann
e1b1edf958
Merge branch 'merge-2.3.0' into new-sync-master-to-2.3.0
2017-03-14 21:04:47 +01:00
Paul Ebermann
aba5abd15e
Update samples again after swagger-parser bump.
2017-03-14 12:54:11 +01: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
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
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
wing328
3be04e8a18
update JS petstore client
2017-01-25 16:08:22 +08:00