-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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][JAVA] AbstractOpenApiSchema package output and declaration missmatch #8583
Closed
6 tasks done
Labels
Comments
@BenjaminKlatt thanks for reporting the issue. I wonder if you can file a PR with the suggested fix so that we can review the fix more easily? |
@wing328 yes, I will prepare one |
BenjaminKlatt
added a commit
to BenjaminKlatt/openapi-generator
that referenced
this issue
Feb 7, 2021
Fixed package declaration in AbstractOpenApiSchema.mustache template
PR created: #8635 |
5 tasks
wing328
pushed a commit
that referenced
this issue
Feb 8, 2021
wing328
pushed a commit
that referenced
this issue
Feb 15, 2021
* FIX #8583 [BUG][JAVA] AbstractOpenApiSchema package Fixed package declaration in AbstractOpenApiSchema.mustache template * New blog post added
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report Checklist
Description
The class AbstractOpenApiSchema is generated into the model package but declares a model package within the invoker package
Not sure if you prefer a pull request over a bug report. so starting with a bug report and a suggested fix below,
openapi-generator version
openapi-generator-maven-plugin 5.0.0
OpenAPI declaration file content or url
Does not depend on a specific openapi spec
Generation Details
Maven Plugin Configuration
Steps to reproduce
Related issues/PRs
Suggest a fix
Depending the result expected, the mustach template should use the model package declaration instead of {{invokerPackage}}.model
openapi-generator/modules/openapi-generator/src/main/resources/Java/libraries/native/AbstractOpenApiSchema.mustache
Line 3 in edf153e
as this is also the case in the native petstore example: https://github.com/OpenAPITools/openapi-generator/blob/edf153eedef58bd04ffa02a56ecbe60a7165bf0f/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java
The text was updated successfully, but these errors were encountered: