Skip to content

Migration documentation needs more context #252

@clif-cisco

Description

@clif-cisco

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.)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions