Skip to content

[BUG][R]Some Model classes are not generating in R-generator like "Date" #2217

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

Closed
4 of 6 tasks
Ramanth opened this issue Feb 22, 2019 · 3 comments
Closed
4 of 6 tasks

Comments

@Ramanth
Copy link
Contributor

Ramanth commented Feb 22, 2019

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • What's the version of OpenAPI Generator used?
  • Have you search for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Bounty to sponsor the fix (example)
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

@auto-labeler
Copy link

auto-labeler bot commented Feb 22, 2019

👍 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 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
@wing328 wing328 closed this as completed Sep 4, 2022
@wing328
Copy link
Member

wing328 commented Sep 4, 2022

FYI. Added a test via #13345

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants