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
  • #281
Closed
Open
Issue created Jun 11, 2018 by Administrator@rootContributor

[cpp-qt5] Escape language reserved symbols which are valid in the spec

Created by: etherealjoy

Description

When the specification contains valid symbols which are language specific operators compilation fails.

openapi-generator version

3.0.0

OpenAPI declaration file content or url

This is a valid snippet from a spec

  v1.HostPathType:
    type: object
    additionalProperties:
      type: string

Creates the following snippet of code for Qt5 for example

class OAIV1.HostPathType: public OAIObject {

This code will not compile for any C++ client and server. I would suppose the same issue for other langs like C#

Suggest a fix/enhancement

The '.' and other valid symbols for example has to be escaped for example to '_' to make compilation pass.

Assignee
Assign to
Time tracking