-
-
Notifications
You must be signed in to change notification settings - Fork 3
[BUG] [Python] 6.1.x Import missing for models with string pattern #10
Comments
hi @wing328, I trackback this behavior to this commit: Do you have any clue what could have caused this change? thanks! |
Not sure why that changed. If you use python-experimental it will work. As shown by this test which is passing in CI |
Hi @spacether, thanks for the feedback. However, I cannot use the python-experimental because our production python env is lower than 3.9. And now, because of this bug we can't update to the new version openapi either. |
Sorry to hear that. What's the lowest python version that you need to support? |
python 3.7 |
@jtvmatos thanks for reporting the issue with the details. I'll take a look today. |
Can you please PM me via Slack for a quick chat (IM) about this issue? https://join.slack.com/t/openapi-generator/shared_invite/zt-12jxxd7p2-XUeQM~4pzsU9x~eGLQqX2g |
@jtvmatos I just changed python-experimental so that it uses python >= 3.7 |
Hi @spacether ! I just validated and the issue mentioned here regarding UUIDs seems to be working with the new release (that is using python-experimental)... However, we're encountering a bug that had been previously fixed: #11 . When I fixed it I only did so in the Python generator, not on the PythonExperimental, so now that the Python Generator is the previously called PythonExperimental, the problem is back. Additionally, there are a number of breaking changes from updating this minor:
which is breaking our python clients. Is there any breaking changes list will all the changes we should be aware of ? Thanks! |
The list of breaking changes that I know about is included in the migration guide Any other breaking changes that exist are bugs, or features that exist in python-prior and not in python. |
Closing this issue because the import issue is working in this repo. |
Bug Report Checklist
Description
After the last minor relase (
6.1.0
) the python sdk is broken when a component schema with a string pattern is provided as reference for a endpoint parameter. In this scenario, in the api files is a missing import for theopenapi_types
.In practice, using the openapi spec yaml below, in the
6.0.1
version, even though themodel/uuid_component.py
file was created is not used, and theopenapi_type
in the api file is a string:Hopwever, in the new release,
6.1.0
, the openapi_type is now described asUuidComponent
but there is no model import in the file:openapi-generator version
6.1.0
OpenAPI declaration file content or url
Generation Details
Python Language without additional configurations.
Steps to reproduce
Generate openapi 6.1.0 spec - python
Related issues/PRs
Suggest a fix
The text was updated successfully, but these errors were encountered: