-
Notifications
You must be signed in to change notification settings - Fork 153
Description
The current migration documentation states the following.
webexpythonsdk is designed to be a drop-in replacement for the webexteamssdk package. The SDK interface and data objects are largely unchanged with only a few minor name changes.
Unfortunately, this is extremely misleading.
The upgrade from Adaptive Card 1.1 to 1.3 605bc7d ... 9d25de7 moved a number of classes, removed multiple modules, and changed some functionality. The API documentation also has multiple references to the previous implementation.
webexpythonsdk.models.cards.components
and webexpythonsdk.models.cards.container
no longer exist and the contents were broken up into .card_elements
, .containers
, and .inputs
.
Various attributes now force specific enums to be passed, breaking backwards compatibility. As an example, TextBlock.color
could previously be set with a string such as "Light". With the new validate_input
enforcement, a Colors
enum must be passed.
It would be helpful if wrapper classes were added as well as a module flag to sidestep validate_input
to maintain drop-in compatibility.
Or, at the very least, please update the migration documentation with a clear table of changes.
(Note that my findings are not exhaustive. There may be other differences as well.)