sunshine-conversations-python icon indicating copy to clipboard operation
sunshine-conversations-python copied to clipboard

Breaking Changes

Open malkovro opened this issue 11 months ago • 0 comments

Last version (15.0.1) pushed seems to have some issues:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/lfigea/opt/anaconda3/envs/py311/lib/python3.11/site-packages/sunshine_conversations_client/api/messages_api.py", line 317, in list_messages
    return self.list_messages_with_http_info(app_id, conversation_id, **kwargs)  # noqa: E501
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/lfigea/opt/anaconda3/envs/py311/lib/python3.11/site-packages/sunshine_conversations_client/api/messages_api.py", line 404, in list_messages_with_http_info
    return self.api_client.call_api(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/lfigea/opt/anaconda3/envs/py311/lib/python3.11/site-packages/sunshine_conversations_client/api_client.py", line 362, in call_api
    return self.__call_api(resource_path, method,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/lfigea/opt/anaconda3/envs/py311/lib/python3.11/site-packages/sunshine_conversations_client/api_client.py", line 206, in __call_api
    return_data = self.deserialize(response_data, response_type)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/lfigea/opt/anaconda3/envs/py311/lib/python3.11/site-packages/sunshine_conversations_client/api_client.py", line 278, in deserialize
    return self.__deserialize(data, response_type)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/lfigea/opt/anaconda3/envs/py311/lib/python3.11/site-packages/sunshine_conversations_client/api_client.py", line 317, in __deserialize
    return self.__deserialize_model(data, klass, parent_data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/lfigea/opt/anaconda3/envs/py311/lib/python3.11/site-packages/sunshine_conversations_client/api_client.py", line 660, in __deserialize_model
    kwargs[attr] = self.__deserialize(value, attr_type)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/lfigea/opt/anaconda3/envs/py311/lib/python3.11/site-packages/sunshine_conversations_client/api_client.py", line 294, in __deserialize
    return [self.__deserialize(sub_data, sub_kls)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/lfigea/opt/anaconda3/envs/py311/lib/python3.11/site-packages/sunshine_conversations_client/api_client.py", line 294, in <listcomp>
    return [self.__deserialize(sub_data, sub_kls)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/lfigea/opt/anaconda3/envs/py311/lib/python3.11/site-packages/sunshine_conversations_client/api_client.py", line 317, in __deserialize
    return self.__deserialize_model(data, klass, parent_data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/lfigea/opt/anaconda3/envs/py311/lib/python3.11/site-packages/sunshine_conversations_client/api_client.py", line 660, in __deserialize_model
    kwargs[attr] = self.__deserialize(value, attr_type)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/lfigea/opt/anaconda3/envs/py311/lib/python3.11/site-packages/sunshine_conversations_client/api_client.py", line 306, in __deserialize
    klass = getattr(sunshine_conversations_client.model, klass)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'sunshine_conversations_client.model' has no attribute 'dict'

Reproduction steps: Initialise a client and a MessagesApi, try to list the messages of a conversation:

from sunshine_conversations_client import ApiClient, Configuration, MessagesApi

client = ApiClient(Configuration(username=username, password=password))
messages_api = MessagesApi(client)

messages_api.list_messages(app_id=app_id, conversation_id=conversation_id)

malkovro avatar Mar 12 '25 17:03 malkovro