Open MaggieWalker opened 1 year ago
@MaggieWalker I just cut a release with a fix in the new python generator repo here:
There's a verification of it in the petstore sample here
from petstore_api.apis.paths.solidus import Solidus
PathToApi = typing_extensions.TypedDict(
'PathToApi',
{
"/": typing.Type[Solidus],
....
}
)
and Solidus exists:
from petstore_api.paths.solidus.get.operation import ApiForGet
class Solidus(
ApiForGet,
):
pass
Thank you @spacether ! I was able to test this locally and it is working for me as well. Thank you for the patch!
You're welcome 🙂 Thank you for the bug report.
Bug Report Checklist
Description
I am generating a python client with the attached specs, and getting an incomplete/broken output.
openapi-generator version
I am using openapi-generator-cli:latest-release https://hub.docker.com/layers/openapitools/openapi-generator-cli/latest-release/images/sha256-fc570971c1ca62fac829aba7d7d735efd580293adecdd2ccae21094904bc29e6?context=explore
OpenAPI declaration file content or url
openapispecs.yml
Generation Details
Output Example
I would expect the second line to have a complete import statement and for PathValues.SOLIDUS to have a value.
python/openapi_client/apis/path_to_api.py
Steps to reproduce
When I run the same specs with the following command (using python-nextgen) I do not see this issue, and I am able to use the client.
Related issues/PRs
Suggest a fix