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
When fed through swagger codegen, the definition above generates a file: swagger_client/models/some_dto[another_dto].py
Then swagger_client/models/__init__.py can't correctly import the file:
from .some_dto[another_dto] import SomeDtoAnotherDto
Anyway, all this to say, during generation, brackets in definition/path names should be converted to _ or empty space when creating files.
Let me know if this isn't clear or if there's a naming convention for swagger spec paths and definitions that I'm not aware of. I couldn't find anything mentioning that in http://swagger.io/specification/
The text was updated successfully, but these errors were encountered:
wing328
added a commit
to wing328/swagger-codegen
that referenced
this issue
Mar 4, 2016
When fed through swagger codegen, the definition above generates a file:
swagger_client/models/some_dto[another_dto].py
Then
swagger_client/models/__init__.py
can't correctly import the file:Anyway, all this to say, during generation, brackets in definition/path names should be converted to
_
or empty space when creating files.Let me know if this isn't clear or if there's a naming convention for swagger spec paths and definitions that I'm not aware of. I couldn't find anything mentioning that in http://swagger.io/specification/
The text was updated successfully, but these errors were encountered: