Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
aneksamun opened this issue Sep 30, 2019 · 2 comments · Fixed by #5106
Closed

Comments

@aneksamun
Copy link
Contributor

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

@wing328
Copy link
Member

wing328 commented Oct 2, 2019

Can we have custom api, model & invoker package - it been ignored now?

Sure we can. If you have time I can probably show you where to fix it.

@aneksamun
Copy link
Contributor Author

chameleon82 added a commit to chameleon82/openapi-generator that referenced this issue Jan 29, 2020
wing328 pushed a commit that referenced this issue Feb 6, 2020
* fix akka-scala-client template compilation warnings

add COOKIE location authorization key
regenerate template

* fix scala akka-http client model imports

* fix #4004 custom package name in reference.conf

* fix scaka-akka codegen test
MikailBag pushed a commit to MikailBag/openapi-generator that referenced this issue Mar 23, 2020
…ools#5106)

* fix akka-scala-client template compilation warnings

add COOKIE location authorization key
regenerate template

* fix scala akka-http client model imports

* fix OpenAPITools#4004 custom package name in reference.conf

* fix scaka-akka codegen test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants