[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.