[Typescript] update addImport method (fix oneOf)#11689
[Typescript] update addImport method (fix oneOf)#11689macjohnny merged 9 commits intoOpenAPITools:masterfrom ksvirkou-hubspot:bugFix/oneOf
Conversation
...napi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptClientCodegen.java
Outdated
Show resolved
Hide resolved
macjohnny
left a comment
There was a problem hiding this comment.
thanks for your contribution!
...napi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptClientCodegen.java
Outdated
Show resolved
Hide resolved
...napi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptClientCodegen.java
Show resolved
Hide resolved
| if (type == null) { | ||
| return; | ||
| } | ||
|
|
There was a problem hiding this comment.
There was a problem hiding this comment.
There was a problem hiding this comment.
can you add tests that are directly related to your code change? i.e. tests that would fail without your change.
There was a problem hiding this comment.
Ok
I ll try to do something
but maybe it would be an example of this in the petstore and test there
I ll think over it
|
Would it make sense to have an example of this in the petstore yaml files? I've run in the bug myself, but it would be good to prevent regressions. |
...napi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptClientCodegen.java
Outdated
Show resolved
Hide resolved
|
FYI see also #11719 |
update master
merge master
merge master
|
Hi @macjohnny |
|
@ksvirkou-hubspot we recently dropped support for typescript below 4, see #12123 |
|
@macjohnny |
merge master
|
I wonder whether they are executed on the CI at all. |
No I have no time sorry |

fixes #11679
PR checklist
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.For Windows users, please run the script in Git BASH.
master(5.3.0),6.0.x