Getting this error when creating bots:
Invalid type for variable 'toggle_button_url'. Required value type is str and passed type was NoneType at ['received_data']['bot_style']['toggle_button_url']
The Issue
Your API returns null for toggle_button_url, but the SDK expects a string.
Working: ListBotsResponseBotsInnerBotStyle allows null values
Broken: CreateABotResponseBotStyle doesn't allow null values
Both endpoints return the same data format, but have different validation rules.
This looks like an OpenAPI spec inconsistency because the bot is successfully created. I think in your internal spec, CreateBotResponseBotStyle needs:
toggle_button_url:
type: string
nullable: true # Add this
Please let me know if you need more information, thank you 🙏.