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
  • #4378
Closed
Open
Issue created Nov 05, 2019 by Administrator@rootContributor4 of 6 checklist items completed4/6 checklist items

[BUG][C++][Pistache] Generated CMakeLists.txt sets compiler flag c++11 but should set c++14

Created by: cjuenger

Bug Report Checklist

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

The cpp-pistache-server generator generates a CMakeLists.txt file that sets c++11 compiler flag. As pistache do not supports c++11 anymore it should be changed to c++14.

openapi-generator version

4.2.0

OpenAPI declaration file content or url
openapi: 3.0.0
info:
  title: Some title
  description: Some description
  version: 0.0.0.0
  
servers:
  - url: http://localhost:8080 
  
paths:
  /doc:
    get:
      operationId: getDoc
      tags:
        - TAG
      security: []
      responses:
        '200':
          description: Documentation of the API.
          content:
            text/html:
              schema:
                type: string
        '500':
          description: Internal Server Error
Command line used for generation

openapi-generator generate -g cpp-pistache-server -i API_SPEC.yaml -o .\src -Dapis=TAG -Dmodels -DsupportingFiles

Steps to reproduce

Generate the cpp-pistache-server sources by executing the command line mentioned above.

Related issues/PRs
Suggest a fix

Change compiler flag from c++11 to c++14.

Assignee
Assign to
Time tracking