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
  • #5836
Closed
Open
Issue created Apr 06, 2020 by Administrator@rootContributor0 of 1 checklist item completed0/1 checklist item

[BUG] C client generator cannot generate petstore label:"Client: C"

Created by: michelealbano

Bug Report Checklist

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

Current C client generator cannot generate correctly code for petstore.yaml (modules/openapi-generator/src/test/resources/3_0/petstore.yaml)

Description

Generate code for modules/openapi-generator/src/test/resources/3_0/petstore.yaml cannot compile. When tweaked manually, the test code does not compile.

openapi-generator version

Current master.

OpenAPI declaration file content or url

modules/openapi-generator/src/test/resources/3_0/petstore.yaml

Command line used for generation

java -jar ../openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g c -i ../openapi-generator/modules/openapi-generator/src/test/resources/3_0/petstore.yaml

Steps to reproduce

mkdir build cd build cmake .. make

Related issues/PRs

maybe issue #5735

Suggest a fix

I found a number of issues with current code. I am providing a PR.

Assignee
Assign to
Time tracking