You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sorry for the late reply.
If we remove . then It can't be worked.
If you would like to avoid the warning we should use an absolute path like from app.models import Pets
When generating an app with the example yaml file provided generates failing relative imports (using Python 3.8)
The import created
from .models import Pets
should be updated tofrom models import Pets
Issue is probably caused here: https://github.com/koxudaxi/fastapi-code-generator/blob/master/fastapi_code_generator/__main__.py#L75
The text was updated successfully, but these errors were encountered: