William Cheng
73a534d54c
fix response type string ( #12246 )
2022-04-27 02:07:11 +08:00
William Cheng
1d934643fd
update samples
2021-09-23 14:29:33 +08:00
Troy P
75b987104b
[JS] the replace statement in parseDate is too greedy ( #8632 ) ( #8633 )
...
* updated the regex used in the String.replace for parseDate() to more precisely target ISO-8601
* added the replace function call to the ES6 mustache file
2021-02-08 13:27:59 +08:00
SBNTT
a127aab497
--http-user-agent arg support in javascript generator ( #8531 )
...
* add User-Agent header in Javascript generator
* add User-Agent header in Javascript-apollo generator
* update samples
2021-01-26 09:50:16 +08:00
nitoqq
25c7ccf30c
JS Client: Allow dot in path parameter name ( #6116 )
...
* JS Client: Allow dot in path parameter name
* JS Client: Allow dot in path parameter name
* Delete ApiClient.js
* Delete ApiClient.js
Co-authored-by: Nikolai Konovalov <konovalov.nikolai@gmail.com>
2020-12-04 12:27:44 +08:00
Troy P
8cfc9b015a
[JS] ( #7913 ) Adding support for multi file upload. Also adding the option for individual CodeGens to specify a collectionFormat ( #7914 )
...
* updated samples as well
2020-11-25 16:00:08 +08:00
Troy P
70bc472b86
[JS] ( #7910 ) Fixing undefined error caused by no this
instances ( #7911 )
2020-11-23 16:17:09 +08:00
Jakub Surdej
2d30714d5e
Allow auth.accessToken to be either function or string ( #7484 )
2020-09-29 10:56:38 +02:00
William Cheng
d7dfcc20c0
Add server URL without variables to the test spec ( #7517 )
...
* add server url without variables to the test spec
* fix php tests
* fix tests
* fix assertion
2020-09-28 22:06:42 +08:00
Troy P
780b55a518
[Javascript] Fixing the handling of non primitive types in paramToString ( #7171 ) ( #7172 )
2020-08-10 16:58:55 +08:00
Troy P
9f1d012d14
adding handling for epoch dates in javascript ApiClient mustache file ( #6497 ) ( #6504 )
2020-08-04 23:55:38 +08:00
William Cheng
d49de5b577
[JS] mark ES5 as deprecated ( #6408 )
...
* mark js es5 deprecated, remove samples, migrate samples to use oas3
* update test in pom.xml
* update js samples
* delete js es5 samples
* update js petstore
* remove openapi3 js petstore
* fix tests
* skip test/model/AdditionalPropertiesArray.spec.js
* fix test
* update doc
2020-05-26 09:55:00 +08:00
pallxk
15b8210e1f
[JavaScript] Avoid setting Content-Type header if body is not used ( #5344 )
2020-02-17 23:31:27 +08:00
fabik111
4ac2738f0a
[JavaScript][ES6] Fix bug issue #4296 ( #4298 )
...
* add check on response
* improve check on response
* update sample
* fix spaces
2019-10-29 09:07:34 +08:00
William Cheng
dc0c24b955
Minor wording change ( #2875 )
...
* better wording for version of openapi doc
* update petstore samples
2019-05-13 15:59:59 +08:00
Jonas DOREL
305f78c52b
JS Client - Add support for empty enum in server object ( #2853 )
...
* Add support for empty enum in server object
* Updated samples
2019-05-13 14:21:43 +08:00
William Cheng
348c22c883
Add "servers" support to operation, path in the JS client ( #2060 )
...
* add operation, path servers to js es6 client
* add servers support to operation, path in js es5
* fix null check
2019-02-09 22:25:01 +08:00
William Cheng
6801741592
Add Bearer authentication support to JS client ( #2020 )
...
* add bearer authentication support to js client
* add bearer format to js client
* fix test case
* update php ze-ph samples
2019-01-31 15:27:24 +08:00
William Cheng
83d34bd8d7
Add multiple servers support to JS API client ( #1974 )
...
* add multiple servers support to JS ES6
* multiple server support in js es5
* using exports in es5
* fix index check
* add oas v3 js es6 client to travis
2019-01-29 11:19:21 +08:00
sredbull
eff0c5e8d0
Added proper error response ( #1814 )
2019-01-07 12:19:50 +08:00
William Cheng
bf2932d41c
fix array of enum class in JS ( #1484 )
2018-11-24 17:04:59 +08:00
William Cheng
f8ada391c4
Fix boolean value handling in HTTP request body ( #1515 )
...
* fix boolean http body handling
* fix typo in parameter name
2018-11-24 16:42:32 +08:00
delenius
9d89387d83
Fix cookie support in Node.js client ( #895 )
2018-09-04 16:31:33 +08:00
delenius
c607ea8b31
Add fixes for es6 generator ( #180 )
...
Various fixes for JS (ES6) generator
2018-06-17 01:59:23 +08:00
Stian Liknes
24104dac35
Add option modelPropertyNaming to javascript generator ( #299 )
...
* Add option modelPropertyNaming to javascript generator
Fixes 6530
* Update Petstore sample
2018-06-14 19:19:23 +08:00
wing328
36f14ab757
update JS petstore samples
2017-10-20 22:16:41 +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
3ad576a53d
update js es6 samples
2017-06-19 01:21:22 +08:00
Vlad Frolov
6a986975e4
[javascript] Fixed fs
files support for Electron ( #5765 )
2017-06-07 17:01:47 +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
b024288df2
JS ES6 enhancements
2017-05-24 16:50:32 +08:00
Dinuka De Silva
ca139ffc05
Gh-4044: Enabling ES6 in javascript
client ( #5593 )
...
* gh-4044: Added useES6 as an option for javascript templates
* gh-4044: Enabled ES6 in `javascript/api.mustache`
* gh-4044: Enabled ES6 in `javascript/ApiClient.mustache`
* gh-4044: Enabled ES6 in `javascript/enumClass.mustache`
* gh-4044: Added useES6 cli option to `javascript` clients and updated the test cases
* gh-4044: Enabled ES6 in `javascript/index.mustache`
* gh-4044: Enabled ES6 in `javascript` model templates
* `javascript/model.mustache`
* `javascript/partial_model_generic.mustache`
* `javascript/partial_model_enum_class.mustache`
* `javascript/partial_model_inner_enum.mustache`
* gh-4044: Separated `javascript-es6` templates to another folder
* gh-4044: Updated `javascript-es6/index.mustache`
* gh-4044: Enabled ES6 in `javascript-es6/api_doc.mustache`
* gh-4044: Added required dependencies for ES6
* gh-4044: Updated Supportig files for ES6 and non ES6
* gh-4044: Added test scripts to verify `javascript` useEs6 option
* gh-4044: Commented `javascript-es6` scripts due to the permission issues.
2017-05-24 16:35:54 +08:00