-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[typescript-angular] Support rxjs 6 #8856
[typescript-angular] Support rxjs 6 #8856
Comments
This has already been fixed and merged into master, but sadly it didn't make it to the v3. |
Any update on when this might get merged to master? |
Please take a look at the issue. This does not let me remove rxjs-compat from dependencies. |
For swagger-codegen >=3.0.0The PR that @britvik mentioned is indeed in the master branch only (<3.0.0). I've created a separate issue for the 3.0.0 branch (in the swagger-codegen-generators repo) to get these commits to the 3.0.0+ version as well. For swagger-codegen <3.0.0Please be aware that the default Angular build still runs for Angular 4.3.0 (see TypeScriptAngularClientCodegen.java):
You can run the build script for Angular 6 with the Linux:
Windows:
|
Description
The import of Observable in rxjs 6 is changed from previous versions. The typescript-angular generator should support the new version
Swagger-codegen version
3.0.2
Suggest a fix/enhancement
Taking any definition, the created services imports rxjs in this way:
With rxjs 6, the correct way to import Observable is:
This should be supported with a specific configuration flag, or when ngVersion is greater than 6.
The text was updated successfully, but these errors were encountered: