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
  • #4004
Closed
Open
Issue created Sep 30, 2019 by Administrator@rootContributor

[BUG][Scala-AKKA] The custom package name is being overwritten in reference.conf file

Created by: aneksamun

Hi,

I been settings custom mainPackage name in the pom file.

      <plugin>
        <groupId>org.openapitools</groupId>
         ...
            <configuration>
              <inputSpec>${project.basedir}/target/licenseplate-api-contract.json</inputSpec>
              <generatorName>scala-akka</generatorName>
              <configOptions>
                <mainPackage>com.some.package</mainPackage>
                <configKeyPath>com.some.package</configKeyPath>
              </configOptions>
              <output>${project.basedir}</output>
            </configuration>
      ...
      </plugin>

When code generation complete the reference.conf file contains hardcoded package name org.openapitools.client which is causing runtime error making HTTP request:

.../reference.conf: 1: No configuration setting found for key 'com'

I need the same namespace as mainPackage.

At the first glance looking atScalaAkkaClientCodegen it look like the configKeyPath is not being set from configuration. Please can you fix this issue? Can we have custom api, model & invoker package - it been ignored now?

Regards, Sergey

Assignee
Assign to
Time tracking