-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[python-nextgen] fix #16010 circular refs lead to no imports #16199
Conversation
Signed-off-by: ふぁ <[email protected]>
Signed-off-by: ふぁ <[email protected]>
Inherited objects are being imported unnecessarily late. |
Signed-off-by: ふぁ <[email protected]>
Signed-off-by: ふぁ <[email protected]>
Signed-off-by: ふぁ <[email protected]>
Signed-off-by: ふぁ <[email protected]>
I have fixed this |
@fa0311 thanks for the PR but the CI tests failed: https://app.circleci.com/pipelines/github/OpenAPITools/openapi-generator/24934/workflows/5d9866ce-79a9-4974-822e-100372bde560/jobs/74478 Can you please take a look when you've time? To run the petstore server locally, please refer to https://github.com/OpenAPITools/openapi-generator/wiki/Integration-Tests |
The test is failing due to an existing bug. Current PythonNextgenPetstoreTests rarely work because they do not do circular import references. |
Merge #16208 and the test was successful. |
but the tests in CI stills failed: https://app.circleci.com/pipelines/github/OpenAPITools/openapi-generator/24934/workflows/5d9866ce-79a9-4974-822e-100372bde560/jobs/74478
looks like some fundamental sytnax errors. can you please take a look? |
My explanation was insufficient. I have created #16208 which fixes #16151 Can I review this pull request again after the review and merge of #16208 ? |
Thanks for the explanation. I've merged your PR #16208 (and add a test via another PR) Please merge the latest master into your branch when you've time. Thank you. |
Signed-off-by: ふぁ <[email protected]>
Signed-off-by: ふぁ <[email protected]>
Successful test :) |
@fa0311 nice. will run some tests later tonight. |
Tested locally and the result is good. will add tests via another PR. Thanks again for the PR. Have a nice weekend. |
PR checklist
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*
.For Windows users, please run the script in Git BASH.
master
(6.3.0) (minor release - breaking changes with fallbacks),7.0.x
(breaking changes without fallbacks)Overview
fix #16010
Circular import seem to be skipped in the current master.
openapi-generator/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java
Lines 937 to 939 in d7311cd