You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Model is not getting generated when the name of the model is "Date" in r codegeneration.
Details of what causing the issue:
Date is being mapped to "java.util.Date" in DefaultCodegen file which is being extended in the RClientCodegen as a result the Date is mapped to the Date class of java and is being skipped from being generated.
I guess the importMapping list needs to be cleared in the RClientCodegen constructor as it makes no sense of converting them to java types.
openapi-generator version
4.0.0
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
use openapi-codegen-cli to generate the models in r language, with any model name matching "Date"
The model will not be generated.
Related issues/PRs
Not Yet
Suggest a fix
Clear the importMappping list inside the constructor of RClientCodegen
The text was updated successfully, but these errors were encountered:
👍 Thanks for opening this issue!
🏷 I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
Ramanth
changed the title
[BUG][R]Some Model classes are not generating in R generator like "Date"
[BUG][R]Some Model classes are not generating in R-generator like "Date"
Feb 22, 2019
Bug Report Checklist
Description
Model is not getting generated when the name of the model is "Date" in r codegeneration.
Details of what causing the issue:
Date is being mapped to "java.util.Date" in DefaultCodegen file which is being extended in the RClientCodegen as a result the Date is mapped to the Date class of java and is being skipped from being generated.
I guess the importMapping list needs to be cleared in the RClientCodegen constructor as it makes no sense of converting them to java types.
openapi-generator version
4.0.0
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
use openapi-codegen-cli to generate the models in r language, with any model name matching "Date"
The model will not be generated.
Related issues/PRs
Not Yet
Suggest a fix
Clear the importMappping list inside the constructor of RClientCodegen
The text was updated successfully, but these errors were encountered: