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
AttributeError: module 'dohq_teamcity.models.file' has no attribute 'swagger_types'
Expected: Files instance returned.
It works when monkey-patched by assigning dohq_teamcity.custom.models.file = dohq_teamcity.models.File, so it's likely that star imports gone wrong somewhere.
The text was updated successfully, but these errors were encountered:
Rename 'file' and 'files' definitions to 'File' and 'Files'.
The lowercase name caused python to mix model declaration and python
module name. As a result, deserializer got 'file' module as 'klass'
argument instead of File model definition.
This caused attribute error exception in deserializer.
fixesdevopshq#25
Reproducible example (using https://teamcity.jetbrains.com/viewType.html?buildTypeId=DemoProjects_TeamCity_Net_Build for build having artifacts):
Result:
Expected:
Files
instance returned.It works when monkey-patched by assigning
dohq_teamcity.custom.models.file = dohq_teamcity.models.File
, so it's likely that star imports gone wrong somewhere.The text was updated successfully, but these errors were encountered: