-
-
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
[angular-typescript] Bug generating model with suffix #957
Comments
@Ilya1vanov could you please explain more in detail which part of the output is not correct? |
@macjohnny thank you for your reply. #767 doesn't fix this issue. |
@Ilya1vanov ah, ok, I see, you are right.
|
@macjohnny I don't think I'm good at Java. I want to ask you to fix it, if you don't mind. On the face of it, the issue is in statement execution order. Map, Set, etc. (languageSpecificPrimitives array) have to be excluded from tsImports (for model) and imports (for api.service) before suffix is applied. But I'm not sure it is as simple as at first glance. You know code better. Anyway, thank you a lot. That would be great if you fix it! |
@Ilya1vanov i filed PR #973 which fixes this issue. |
@macjohnny thank you. You are doing a great job! |
@Ilya1vanov it looks like this will be added to the |
* OpenAPITools#957: add missing type mapping * OpenAPITools#957: generate samples
Description
Generator tries to insert such import:
when suffix is provided (e.g. Swagger)
and model contains map inside (same for services which take map as parameter)
openapi-generator version
3.2.2
3.2.3
OpenAPI declaration file content or url
Command line used for generation
where $1 and $2 are input and output.
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement
Exclude native js classes from imports before suffix applied.
The text was updated successfully, but these errors were encountered: