7360 Commits

Author SHA1 Message Date
Bodo Graumann
f3f5fef279 Typescript refactor: Platform select for browser and node (#4500)
* Use string form of filename parameter

This works for the form-data library and is also compatible with the
browser FormData object.

* Add new option to select platform node or browser

When no platform is selected, a default is chosen by the framework
option and likewise the file data type option is implied by the
platform.

* Remove redundant import of node dns module

* Only use form-data library for node platform

* Generate npm package from npmName option

* Use method convertPropertyToBooleanAndWriteBack

* Generate typescript samples with ensure-up-to-date
2020-01-18 06:31:27 -05:00
Bodo Graumann
6dfe637b21 Typescript refactor: stub rxjs (#4424)
* Remove unused supportsES6 field from codegen

* Add a new switch for RXJS

* Remove redundant npm dependency on rxjs4 types

* Fix return type of PromiseMiddleware methods

* Install webpack dependency to run jquery tests

* Update form-data to 2.5 which includes typings

* Add missing dependency on node typings

* Fix test artifact name typo

* Stub rxjs when it is not explicitly enabled
2019-11-19 11:48:08 -05:00
Bodo Graumann
a738e95aee Refactor typescript merge master (#4319)
Merge master into ts-refactor
2019-11-01 11:04:18 -04:00
Tino Fuhrmann
bc734da7d4 Ensured up to date 2019-05-05 22:58:45 +02:00
Tino Fuhrmann
abff890b90 Fixed a couple issues with pom.xml 2019-05-05 22:39:52 +02:00
Tino Fuhrmann
b796270880 Removed tabs in TypeScriptClientCodegen 2019-05-05 20:43:50 +02:00
Tino Fuhrmann
7d69d0b9cb Added jquery library 2019-05-05 16:44:32 +02:00
Tino Fuhrmann
3e94fd15cc Added gitignore and git_push 2019-05-03 20:22:29 +02:00
Tino Fuhrmann
7d0b3e1879 Fixed compilation issues in TypeScriptClientCodegen 2019-05-01 10:50:57 +02:00
Tino Fuhrmann
496c0c8bdc Removed accidentally created generated code 2019-05-01 10:45:07 +02:00
Tino Fuhrmann
5f163da848 Added comments & license info 2019-04-30 23:25:24 +02:00
Tino Fuhrmann
7f5615485d Fixed date-time and date handling 2019-04-30 23:25:24 +02:00
Tino Fuhrmann
74bb8ccfe7 Configure discriminator correctly 2019-04-30 23:20:50 +02:00
Tino Fuhrmann
01b0ff6008 Made discriminator and attributeTypeMap readonly 2019-04-30 23:20:50 +02:00
Tino Fuhrmann
5323a5d7a6 Added promise based middleware 2019-04-30 23:20:50 +02:00
Tino Fuhrmann
8c03ea8ca5 Use observables internally 2019-04-30 23:20:50 +02:00
Tino Fuhrmann
c90c3f9d7b Restructured module layout 2019-04-30 23:20:50 +02:00
Tino Fuhrmann
9c17bc5721 Remove tab 2019-04-30 23:20:50 +02:00
Tino Fuhrmann
a0e3f18f2f Use string union for enums 2019-04-30 23:20:49 +02:00
Tino Fuhrmann
647474f3d9 Made api call configuration separately settable 2019-04-30 23:20:49 +02:00
Tino Fuhrmann
4720467cbb Fixed file uploads 2019-04-30 23:20:49 +02:00
Tino Fuhrmann
2468b748d3 Additional tests for pet store api 2019-04-30 23:20:49 +02:00
Tino Fuhrmann
9a9e62cfa5 Removed tabs in DefaultCodegen 2019-04-30 23:20:49 +02:00
Tino Fuhrmann
5174e7539b Removed tabs in TypeScriptClientCodegen 2019-04-30 23:20:49 +02:00
Tino Fuhrmann
fe0cb07afb Added handling for different http status codes and test for deletePet 2019-04-30 23:20:49 +02:00
Tino Fuhrmann
69dfdd57a6 Added simple test for PetApi 2019-04-30 23:20:49 +02:00
Tino Fuhrmann
8d29ca42d5 Added server variable configuration to ts-refactor 2019-04-30 23:20:49 +02:00
Tino Fuhrmann
f4b3eb011b Removed tabs from TypeScriptClientCodegen 2019-04-30 23:19:34 +02:00
Tino Fuhrmann
29940ef0b1 Removed TODOs 2019-04-30 23:19:34 +02:00
Tino Fuhrmann
dd7d8c0271 Reverted: http library.send returns string again 2019-04-30 23:19:34 +02:00
Tino Fuhrmann
0da5238e24 Restructured TypeScript generator 2019-04-30 23:19:33 +02:00
Tino Fuhrmann
2e8446ceee Added middleware to fetch 2019-04-30 23:19:33 +02:00
Tino Fuhrmann
5adefaf53f Implemented fetch client 2019-04-30 23:19:33 +02:00
Tino Fuhrmann
8dca5e4cbe Implemented RequestFactory and Processor completely 2019-04-30 23:19:33 +02:00
Tino Fuhrmann
e21a48dd64 WIP: api modeling 2019-04-30 23:19:33 +02:00
Tino Fuhrmann
894bddac1b Updated auth 2019-04-30 23:19:33 +02:00
Tino Fuhrmann
fe2cc24f4d WIP: Models & API 2019-04-30 23:19:33 +02:00
Tino Fuhrmann
b0f8dc9505 Added sample for typescript client 2019-04-30 23:19:33 +02:00
Tino Fuhrmann
8f82cdec7d Added servers 2019-04-30 23:19:33 +02:00
Tino Fuhrmann
64f29483ce Added auth module 2019-04-30 23:19:33 +02:00
Tino Fuhrmann
94432cff92 Added model generation with imports 2019-04-30 23:19:33 +02:00
Tino Fuhrmann
3e745b71f2 Modified http lib, added config & middleware definition to ts-fetch 2019-04-30 23:19:32 +02:00
Tino Fuhrmann
f90e1b59f5 Added generic enum 2019-04-30 23:19:32 +02:00
Tino Fuhrmann
dd6835393d Added http module draft 2019-04-30 23:19:32 +02:00
dan-drl
a7df4adcf5 [C++][RestSDK] Windows vcpkg vs2017 support (#2751)
* Add boost-uid to vcpkg isntall command. It's required.

* Add instructions for building on visual studio 2017

* Add section to support vcpkg and visual studio

* Undef U on windows to stop compiler error

* Update pet store sample

* Move undef U to apiclient-header

* Slight change to address compiler warning
2019-04-30 22:27:22 +02:00
Jim Schubert
5ea4391af5 [cli][gradle] Adds package name as a global option (#2557)
* [cli] Support packageName as global option

CLI supports other package-related options (--api-package,
--model-package, --invoker-package). This aligns those options with
--package-name to avoid confusion about how to configure these options
where those are supported.

This intentionally does not apply a packageName getter/setter to
DefaultCodegen to reduce the footprint of this change.

* [gradle] Add packagName as global option

This makes packageName available as a global option, beside apiPackage,
modelPackage, and invokerPackage to reduce potential confusion about how
to configure the four of these options by generators which support them.
2019-05-01 00:46:48 +08:00
Vincent Devos
a5235f25b4 [TypeScript] Generate oneOf schemas as type unions (#2647)
* [TypeScript] Generate oneOf schemas as type unions

* [TypeScript] Generate oneOf schemas as type unions

* [TypeScript] Generate oneOf schemas as type unions

update aurelia sample
2019-05-01 00:46:05 +08:00
William Cheng
d3f418166b
mark java jersey1 client as deprecated (#2767) 2019-04-30 19:14:52 +08:00
Jacob Floyd
942a0dafb6 [Python Connexion Servers] BUGFIX: handle . in package names (#2508)
This fixes adding supporting files to packages that have a '.'.

If the controllersPackage or modelsPackage has a '.' (eg to put the
controllers and/or models in a subpackage of the invokerPackage),
supporting controller and models were ending up in directories that
included the period instead of converting the periods to file
separators.
2019-04-30 14:52:22 +08:00
Jim Schubert
baf0e85216
Load TemplatingEngineAdapter via Service Provider (#2755) 2019-04-29 15:17:11 -04:00