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
  • #2277
Closed
Open
Issue created Mar 01, 2019 by Administrator@rootContributor4 of 5 checklist items completed4/5 checklist items

[BUG] cpp-qt5-client using --model-name-prefix option prevents generation of 'client.pri'

Created by: dtucker61

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • [NA ] 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

Using the '--model-name-prefix ' command line option causes the 'client.pri' file to NOT be generated. Related/Aside: using the '-c <file>' with file contents == { "optionalProjectFile":"true" } appears to have no effect.

openapi-generator version

4.0.0-beta 4.0.0-beta2

OpenAPI declaration file content or url

This issue appears to be independent of OpenAPI declaration file content.

Command line used for generation

The following generates a 'client.pri' file: java -jar ${SWCG_JAR}/swagger-codegen.jar generate --enable-post-process-file --input-spec $1 --generator-name cpp-qt5-client --template-dir /space/data/Repositories/MustacheFiles/ForQtClient --output $4 -c $3

The following does not generate a 'client.pri' file: java -jar ${SWCG_JAR}/swagger-codegen.jar generate --enable-post-process-file --input-spec $1 --generator-name cpp-qt5-client --template-dir /space/data/Repositories/MustacheFiles/ForQtClient --output $4 --model-name-prefix=$2 -c $3

Steps to reproduce
  1. Issue the first CLI listed above.
  2. Observe presence of 'client.pri' in the output directory.
  3. Issue the second CLI command listed above.
  4. Observe that the file 'client.pri' is not generated in the output directory.
Related issues/PRs

Case #730 appears to demonstrate a completely different syntax for using --model-name-prefix. Not sure if this is at all related.

Suggest a fix
Assignee
Assign to
Time tracking