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
  • #1855
Closed
Open
Issue created Jan 08, 2019 by Administrator@rootContributor

[BUG][cpp-qt5] template has extraneous characters

Created by: dtucker61

Description

Typo in mustache file (apirequest.cpp.mustache) for cpp-qt5-qhttpengine-server. Line 80 is currently:

 ::{{cppNamespace}}::fromStringValue((QString(socket->readAll()), {{paramName}});

Note the extra ( following fromStringValue.

The line should be:

 ::{{cppNamespace}}::fromStringValue(QString(socket->readAll()), {{paramName}});
openapi-generator version

Current version (4.0.0) and at least on prior (3.3.4)

Steps to reproduce

Generate code from the following spec:

openapi: 3.0.0
info:
  version: 1.0.0
  title: StringBugDemo
servers:
  - url: 'http://localhost:8080'
paths:
  /demo:
    post:
      summary: Test for typo in generated code
      requestBody:
        description: to show bug
        content:
          application/json:
            schema:
              type: string
      responses:
        '200':
          description: success
Suggest a fix

Remove the extraneous character.

Assignee
Assign to
Time tracking