openapi-python-client icon indicating copy to clipboard operation
openapi-python-client copied to clipboard

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

Open drwilly opened this issue 1 year ago • 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.

drwilly avatar Jul 22 '24 15:07 drwilly

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

lokkju avatar Nov 07 '24 17:11 lokkju