-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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] update addImport method (fix oneOf) #11689
Conversation
...napi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptClientCodegen.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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