add new generator: typescript-rxjs#1884
add new generator: typescript-rxjs#1884wing328 merged 25 commits intoOpenAPITools:masterfrom denyo:typescript-rxjs
Conversation
Feature/rxjs * feat: duplicate typescript-fetch, add docs * duplicate fetch codegen to use for rxjs * remove mapping helpers from modesl * introduce rxjs, adjust apis * make middlewares work * fix namespace issue with babel * fix enum generation * fix formatting of enum * remove other readme * feat: duplicate typescript-fetch, add docs * duplicate fetch codegen to use for rxjs * remove mapping helpers from modesl * introduce rxjs, adjust apis * make middlewares work * fix namespace issue with babel * fix enum generation * fix formatting of enum * remove other readme
|
cc @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @nicokoenig (2018/09) @topce (2018/10) |
|
see also #802 (comment) |
...-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptRxjsClientCodegen.java
Outdated
Show resolved
Hide resolved
|
@denyo I suggest you to add an entry to also, it would be good to have a small integration test to avoid regression issues. see e.g. |
|
@macjohnny thanks for the feedback and hints. |
modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache
Show resolved
Hide resolved
modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache
Show resolved
Hide resolved
modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache
Outdated
Show resolved
Hide resolved
modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache
Outdated
Show resolved
Hide resolved
modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache
Show resolved
Hide resolved
modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache
Show resolved
Hide resolved
modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache
Outdated
Show resolved
Hide resolved
modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache
Show resolved
Hide resolved
…untime.mustache Co-Authored-By: denyo <hacker.bernd@gmail.com>
…untime.mustache Co-Authored-By: denyo <hacker.bernd@gmail.com>
…untime.mustache Co-Authored-By: denyo <hacker.bernd@gmail.com>
…untime.mustache Co-Authored-By: denyo <hacker.bernd@gmail.com>
…untime.mustache Co-Authored-By: denyo <hacker.bernd@gmail.com>
…untime.mustache Co-Authored-By: denyo <hacker.bernd@gmail.com>
…untime.mustache Co-Authored-By: denyo <hacker.bernd@gmail.com>
…untime.mustache Co-Authored-By: denyo <hacker.bernd@gmail.com>
|
Thanks for the additions. |
modules/openapi-generator/src/main/resources/typescript-rxjs/apis.mustache
Outdated
Show resolved
Hide resolved
…pis.mustache Co-Authored-By: denyo <hacker.bernd@gmail.com>
You are right, I missed that. So you can revert the change I suggested that adds the interface |
|
Will do. Also the one with |
you are right, it is inside a |
…t-rxjs/runtime.mustache" This reverts commit 26f65ca.
|
@denyo thanks for the PR, which has been merged into master. @macjohnny thanks for reviewing the change. |
* Merged in feature/rxjs (pull request #2) Feature/rxjs * feat: duplicate typescript-fetch, add docs * duplicate fetch codegen to use for rxjs * remove mapping helpers from modesl * introduce rxjs, adjust apis * make middlewares work * fix namespace issue with babel * fix enum generation * fix formatting of enum * remove other readme * feat: duplicate typescript-fetch, add docs * duplicate fetch codegen to use for rxjs * remove mapping helpers from modesl * introduce rxjs, adjust apis * make middlewares work * fix namespace issue with babel * fix enum generation * fix formatting of enum * remove other readme * add bash scripts to generate samples * remove environment import * add rxjs dependency to package.mustache * add genereated samples * add docs * add windows scripts * adjust license info * update "ensure-up-to-date" by typescript-rxjs * Update modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache Co-Authored-By: denyo <hacker.bernd@gmail.com> * Update modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache Co-Authored-By: denyo <hacker.bernd@gmail.com> * Update modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache Co-Authored-By: denyo <hacker.bernd@gmail.com> * Update modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache Co-Authored-By: denyo <hacker.bernd@gmail.com> * Update modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache Co-Authored-By: denyo <hacker.bernd@gmail.com> * Update modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache Co-Authored-By: denyo <hacker.bernd@gmail.com> * Update modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache Co-Authored-By: denyo <hacker.bernd@gmail.com> * Update modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache Co-Authored-By: denyo <hacker.bernd@gmail.com> * Update modules/openapi-generator/src/main/resources/typescript-rxjs/apis.mustache Co-Authored-By: denyo <hacker.bernd@gmail.com> * fix missing return for Observable<void> * use shorthand syntax * improve linting * improve linting * revert previous changes * Revert "Update modules/openapi-generator/src/main/resources/typescript-rxjs/runtime.mustache" This reverts commit 26f65ca. * recreate typescript-rxjs samples
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\.master,. Default:3.4.x,4.0.xmaster.Description of the PR
This PR adds a new generator
typescript-rxjswhich is based ontypescript-fetchand replaces allfetchandPromiserelated things with rxjsajaxandObservables: https://github.com/ReactiveX/rxjs/blob/master/src/internal/observable/dom/AjaxObservable.ts.