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

[BUG] The script new.sh generates a wrong package for test classes.

Created by: marcoaltieri

Description

The script new.sh creates test classes with a wrong package if the generator name contains dashes.

openapi-generator version

Since the new.sh was introduced.

Command line used for generation

./new.sh -n java-something -s -t

Steps to reproduce

Execute: ./new.sh -n java-something -s -t

The script generates the class: modules/openapi-generator/src/test/java/org/openapitools/codegen/java-something/JavaSomethingServerCodegenModelTest.java

that has an invalid character in its package.

Suggest a fix

Ideally, the script should generate the classes in the package

modules/openapi-generator/src/test/java/org/openapitools/codegen/java/something

or, at least, it should state that, with the current implementation, a dash in the generator name is not supported by this script.

Assignee
Assign to
Time tracking