openapi-generators/openapi-python-client

Name conflict between `models.Response` and `types.Response`

drwilly opened this issue · 1 comments

I ran into an OpenAPI spec which included a Response type. That caused a name conflict in the generated python code:

from ...models.response import Response
from ...types import Response

This was fixed easily enough using a class_overrides config, but since the classes in types.py are pretty generic I think it would be better if the classes were just fully qualified to avoid this kind of conflict.

lokkju commented

@drwilly could you add the class_overrides stanza you used here?