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
  • #3254
Closed
Open
Issue created Jul 01, 2019 by Administrator@rootContributor3 of 3 checklist items completed3/3 checklist items

[BUG][cpp-restsdk] Generated code does not work

Created by: DominikPf

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • [4.0.2] What's the version of OpenAPI Generator used?
  • Have you search for related issues/PRs?
Description

Version: 4.0.2 Docker

The Code Generator creates invalid Code for Model Definitions (Simple Interaction (string<->string seems fine)

OpenAPI declaration file content or url

swagger.zip

Steps to reproduce
  1. Place swagger.json in the working directory
  2. Execute Swagger Generator CLI via Docker
docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli:v4.0.2 generate -i local/swagger.json -g cpp-restsdk -o /local/TestApi.Client/
  1. Try to compile c++ Code Multiple errors in TestEntity & TestEntityApi

2019-07-01 13_56_17-TestApi - Microsoft Visual Studio But Code seems fine for this line: https://github.com/OpenAPITools/openapi-generator/blob/fae9d4a37be74347abbe1cb3dd5b795d198c54de/modules/openapi-generator/src/main/resources/cpp-rest-sdk-client/model-source.mustache#L28

Is the cpp-restsdk generator not in the current Version? (Git Tag is also used)

2019-07-01 13_57_17-TestApi - Microsoft Visual Studio

Assignee
Assign to
Time tracking