Vincent Devos
8977d7b366
[JavaScript] fix index.js, ApiClient.js and test files generated to incorrect location ( #2511 )
...
remove outdated samples files
update test dependencies
2019-03-30 10:04:44 +08:00
William Cheng
f015363dbd
update samples
2019-03-25 22:44:05 +08:00
William Cheng
2e777c04d4
Better handling of operationId with slashes ( #2469 )
...
* better handling of operation id with slashes
* update smaples
2019-03-22 10:41:53 +08:00
Kevin Smith
1a19edb0e5
Add build script and remove babel ( #2439 )
...
* Add build script and remove babel
This change adds a build script which uses babel to transpile generated es6 source to es5, such that it can then be used in node projects or published as a package to npm. The `babel` package is also removed as it is deprecated, and superseded by `babel-cli`.
See https://github.com/OpenAPITools/openapi-generator/issues/2126#issuecomment-473926663
* update samples
2019-03-21 22:36:56 +08:00
Justin Black
b67318ef21
Adds spec additionalProperties + nullable examples ( #2405 )
...
* Adds v2 spec additionalproperties examples, adds v3 spec nulllable model example, updates samples
* Remaining samples updates
* Adds csharp generator update to handle models with multilevel parent types, which works for the AdditionalPropertiesObject model, samples updated
2019-03-20 15:31:28 +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
1189362466
[JavaScript] Added plugins variable for the javascript/ES6 client ( #1797 )
...
* Added plugins variable for the javascript/ES6 client
* Ran the javascript and javascript-es6 shell script
2019-01-07 12:18:03 +08:00
William Cheng
f0f214743e
Use JS ES6 as the default ( #1825 )
...
* set JS ES6 as the default
* update doc
2019-01-07 11:43:11 +08:00
William Cheng
8c599ebf12
Add support for multiple inheritance ( #1664 )
...
* add all parent names
* clean up supportsInheritance
* fix npe
* fix allVars, fix test cases
* add more tests, remove comments
* update docker m2 cache dir, add more tests, fix mandatory
* update samples
* regenerate js spec files
* add logic to detect self reference
* add isSelfReference flag to codegen property
* add ruby tests for cat model
* remove debugging info
* fix JS allvars not have x-js-doctype
* update samples
* update js samples
2018-12-15 00:24:36 +08:00
William Cheng
8f8d3547f6
Update JS client dependency ( #1578 )
...
* update js dep
* fix missing comma
* remove unused test files in JS
* remove StringBooleanMap.spec.js
* remove StringBooleanMap.spec.js
2018-11-30 18:47:32 +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
William Cheng
3b53ac435f
fix duplicate call in JS ( #1270 )
2018-10-26 18:28:37 +08:00
William Cheng
47b3210cb2
Add js-beautify support to JS generator ( #961 )
...
* add js-beautify support to JS generator
* replace tab with space
* update samples without JS_BEAUTIFY_PATH
2018-09-08 18:06:27 +08:00
delenius
9d89387d83
Fix cookie support in Node.js client ( #895 )
2018-09-04 16:31:33 +08:00
Akihito Nakano
21777f2759
[JavaScript] Update vulnerable dependencies ( #784 )
...
* Update vulnerable dependencies
* Update samples: javascript-es6
* Update samples: javascript-promise
* Update samples: javascript-promise-es6
* Update samples: javascript
* Update samples: petstore-security-test/javascript
* Rename operationId if it starts with a number
* Update samples
bin/javascript-petstore.sh
bin/javascript-es6-petstore.sh
bin/javascript-promise-petstore.sh
bin/javascript-promise-es6-petstore.sh
2018-08-10 21:50: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
Jérémie Bresson
7ecd5f3566
Rename "swagger" to "openapi" ( #191 )
...
* Rename ".swagger-codegen-ignore" to ".openapi-generator-ignore"
* Rename setGenerateSwaggerMetadata(Boolean) to setGenerateMetadata(Boolean)
* Rename Metadata Folder to .openapi-generator
2018-04-22 21:28:17 +02:00
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
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
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
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
02f30a27f9
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-06-23 22:09:45 +08:00
wing328
5b4e8a8ed5
[JavaScript] fix JS shell scripts, add log to show template version ( #5907 )
...
* fix JS shell script, add log to show es version
* change CLI option default value for useES6
* fix shell script in JS ES6 promise
* fix windows batch files
* set useES6 to false
2017-06-23 22:09: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
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
3ad576a53d
update js es6 samples
2017-06-19 01:21:22 +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 54f5d73ee245811baf0b82eaae0b0ef3949b9f0a.
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
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