Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #2217
Closed
Open
Issue created Feb 22, 2019 by Administrator@rootContributor4 of 6 checklist items completed4/6 checklist items

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

Created by: Ramanth

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

Assignee
Assign to
Time tracking