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
  • #4289
Closed
Open
Issue created Oct 28, 2019 by Administrator@rootContributor

[BUG][C] errors in supporting additionalProperties in C client

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?
Description

I tried to compile the declaration reported below. The results was:

/mnt/hgfs/shared/clientC/model/service_query_form_dto.c:25:15: error: ‘localKeyValue’ undeclared (first use in this function); did you mean ‘localMapKeyPair’? free (localKeyValue->key); ^~~~~~~~~~~~~ localMapKeyPair

openapi-generator version

commit 4543c210 (grafted, HEAD -> master, origin/master, origin/HEAD) Author: sullis github@seansullivan.com Date: Sat Oct 26 21:10:55 2019 -0700

OpenAPI declaration file content or url

https://gist.github.com/michelealbano/4ecf5b628a5d7eb305a3eea5da16ff4a

Command line used for generation

java -jar openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g c -i cproblems.json -o clientC --additional-properties=swaggerDocketConfig=true

Steps to reproduce

java -jar openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g c -i cproblems.json -o clientC --additional-properties=swaggerDocketConfig=true cd clientC mkdir build cd build cmake .. make

Related issues/PRs

N/A

Suggest a fix

In model-body.mustache, change "localMapKeyPair" on line 258 into "localKeyValue".

Assignee
Assign to
Time tracking