Matthieu Berthomé
ee43cc1520
handle composed schemas in InlineModelResolver ( #2112 )
...
* handle composed schemas in InlineModelResolver
* fix unit test -> TestUtils.parseSpec
* update samples
* fix samples
* update samples
* update samples
* add new files
2019-05-08 10:19:15 +08:00
William Cheng
f015363dbd
update samples
2019-03-25 22:44:05 +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
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
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
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
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
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
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
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
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
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
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
wing328
e1e5ac4d37
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-17 22:00:06 +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
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
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
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
Albert Morlan
ccb3385081
Set embedded templates directory when generating Javascript code ( #4585 )
2017-01-19 18:07:58 +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
5804fbc1dd
remove unnecesary change in JS codegen
2016-08-31 16:52:46 +08:00
wing328
0a5cd19e97
update JS test cases
2016-08-12 10:30:33 +08:00
wing328
7a245e3189
[JavaScript] add enum tests cases for JS generator (java) ( #3546 )
...
* add enum tests cases for JS generator (java)
* fix typo quote
2016-08-08 18:52:24 +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
delenius
8a8e9432e1
Generate type annotations in JS model constructors
...
Fixes #3207
2016-06-29 13:53:33 -07:00
wing328
73f88f0bff
update js promise petstore client
2016-06-29 21:44:13 +08:00
Ferris Tseng
c30c586f94
update petstore sample
2016-06-17 15:46:36 -04:00
wing328
8085e11063
add license header to JS cient, update sample
2016-06-15 01:18:04 +08:00
xhh
5acef6d634
Update petstore sample for JS-promise client
2016-05-06 18:02:32 +08:00
wing328
ab7b73ca21
update js samples
2016-05-01 12:09:23 +08:00
wing328
2d5cc50bd1
Merge branch 'master' of https://github.com/demonfiddler/swagger-codegen into demonfiddler-master
...
Conflicts:
samples/client/petstore/javascript-promise/README.md
samples/client/petstore/javascript-promise/docs/PetApi.md
samples/client/petstore/javascript-promise/docs/StoreApi.md
samples/client/petstore/javascript-promise/src/api/PetApi.js
samples/client/petstore/javascript-promise/src/index.js
samples/client/petstore/javascript/README.md
samples/client/petstore/javascript/docs/PetApi.md
samples/client/petstore/javascript/docs/StoreApi.md
samples/client/petstore/javascript/src/api/PetApi.js
samples/client/petstore/javascript/src/index.js
2016-05-01 12:05:49 +08:00
wing328
7f09a86a1e
update wording related to git
2016-04-30 20:23:35 +08:00
Kevin Glinski
2beeabb33a
fixing typeos
2016-04-14 08:22:56 -04:00
wing328
0e1f1606cd
update js code gen to handle different type, format
2016-04-11 22:20:30 +08:00
demonfiddler
77638bc21d
Merge https://github.com/swagger-api/swagger-codegen
2016-03-31 14:38:15 +01:00
wing328
20f1e97df3
fix typo in readme
2016-03-30 20:58:18 +08:00
demonfiddler
14ceb4bf84
Fix, tests for Issue#2240 "Support invokerPackage configuration option"
2016-03-25 16:36:06 +00:00