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
Fill out the text-field with something that can be transformed to a datetime such as 20251023
Create and start Reading from Datafeed
Fill out form with 20251023 and submit
Alternatively:
Generate Python Bot with the Symphony Bot Generator
Send @mention /gif
Fill out form with 20251023 and submit.
Expected Result:
The value should come in as a String and let the developer action against it as there is nothing in the response that indicates what type it should be. The type should not be inferred.
For the generated Python BDK:
Expected result is that it should return with "Category is 20251023"
Actual Result:
The type is being inferred. Even though I put 20251023 and it can be inferred to be a valid date, in this case I am not expecting a datetime as it could be an ID or something else.
For the generated Python BDK after hitting submit you get "Category is 2025-10-23" which shows it being transformed to a datetime.
Environment:
Python 3.11.1
Windows 10
symphony_bdk_python 2.7.1
Additional Context:
Modifying Lines 90 and 263 of v4_symphony_elements_action.py to only include str and none_type fixes this issue but, may be considered a breaking change as there may developers currently expecting us to transform it to datetimes and other types.
Bug Report
Steps to Reproduce:
Alternatively:
Expected Result:
The value should come in as a String and let the developer action against it as there is nothing in the response that indicates what type it should be. The type should not be inferred.
For the generated Python BDK:
Expected result is that it should return with "Category is 20251023"
Actual Result:
The type is being inferred. Even though I put 20251023 and it can be inferred to be a valid date, in this case I am not expecting a datetime as it could be an ID or something else.
For the generated Python BDK after hitting submit you get "Category is 2025-10-23" which shows it being transformed to a datetime.
Environment:
Python 3.11.1
Windows 10
symphony_bdk_python 2.7.1
Additional Context:
Modifying Lines 90 and 263 of v4_symphony_elements_action.py to only include str and none_type fixes this issue but, may be considered a breaking change as there may developers currently expecting us to transform it to datetimes and other types.
symphony-bdk-python/symphony/bdk/gen/agent_model/v4_symphony_elements_action.py
Line 90 in e31a701
'form_values': ({str: (str, none_type)}, none_type), # noqa: E501
symphony-bdk-python/symphony/bdk/gen/agent_model/v4_symphony_elements_action.py
Line 263 in e31a701
self.form_values: Union[{str: (str, none_type)}] = None
The text was updated successfully, but these errors were encountered: